Setting attribute of child element of included layout

后端 未结 3 1664
情书的邮戳
情书的邮戳 2021-02-03 18:46

I have a main.xml file describing the layout of my main activity:




        
3条回答
  •  悲哀的现实
    2021-02-03 19:07

    https://developer.android.com/training/improving-layouts/reusing-layouts.html

    You can set the android:id property of each include. That gives the id to the root element of the layout being included.

    Get that view by id then find the subview you want to change the text on.

提交回复
热议问题