I have two layout.xml one main.xml another item.xml. How can I change the text item.xml in the code MainActivity.java? Through findViewById (R.id.text) and text.setText () does not work.

  • one
    Arrange the correct tags with important information, so that people would understand what you are talking about and what you work with (language, devices, frameworks, etc). Almost in every language and UI there is a TextView element for them. - Alex Krass

1 answer 1

Can be changed via Strings.xml , and from the MainActivity call R.strings.textValue