Home > Mobile >  How can we modify the text in the XML content include the layout?
How can we modify the text in the XML content include the layout?

Time:10-10

Are there in each include a textview, but don't want to change in the Java textview content directly in XML change, could you tell me how to do?

CodePudding user response:

You are in the corresponding textview layout
Android: text="are you going to modify the contents of the"

CodePudding user response:

reference 1st floor usecf response:
you are in the corresponding textview layout
Android: text="you have to modify the contents of the"

But I include directly in the XML layout, how you can modify the text, the text content of different XML needs is not the same as

CodePudding user response:

To set the View id layout, by id to find

CodePudding user response:

reference zhang106209 reply: 3/f
to set the View id layout, by id to find the

I'm of new, could you tell me how to set?

The android: id="@ id/text"
Android: text="XXX"

So I write it in the text to cultural no & gt;

CodePudding user response:

No, include the layout of the cannot directly change attributes in XML, only Java

CodePudding user response:

reference m - 5 floor oj response:
no, include the layout of the cannot directly change attributes in XML, can only change the Java

So... Thank you good ZSBD
  • Related