Adding a view to a LinearLayout at a specified position

后端 未结 6 917
[愿得一人]
[愿得一人] 2020-12-25 09:52

I have the following main.xml file with a LinearLayout




        
6条回答
  •  一向
    一向 (楼主)
    2020-12-25 10:15

    Add an ImageView into the xml, and if its not being used, make it invisible (image.setVisibility(View.INVISIBLE)). It may not show anything anyway when no image is set.

提交回复
热议问题