Center ImageView inside another ImageView in Android

后端 未结 4 1729
无人共我
无人共我 2021-02-10 06:52

Well I have to fit one ImageView inside another one. It is smaller and has to be exactly at the center. I have both images scaled for different screen resolutions but I can test

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-10 07:13

    Use RelativeLayout and then use android:layout_centerInParent="true" remember the order you add the ImageViews will decide what is on top :)

提交回复
热议问题