How can i change included xml layout to another layout on java code?

前端 未结 3 1080
灰色年华
灰色年华 2020-12-13 01:20

i have a problem. I develop android application.

I included second layout to first layout like this:

         


        
3条回答
  •  粉色の甜心
    2020-12-13 01:56

    Have you tried to get the instance of the current view of the xml you have included the other xml and use findViewById(). View v is the first layout and against this view you use .findViewById()

提交回复
热议问题