S
S
sofull2017-05-31 19:37:44
Java
sofull, 2017-05-31 19:37:44

How to access the button property by name?

Good afternoon!
I'm trying to write in android studio.
There is a button id in a string variable like
String name="button_11"
I want to access the button and change the text in it.
In general, it looked like button_11.setText("Text");
How can I implement this to combine? Make - name.setText("Text"); ?
Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question