A
A
Anna Trusheva2016-10-04 11:23:07
Android
Anna Trusheva, 2016-10-04 11:23:07

Change RadioButton text to text read from file?

Good afternoon. I am new to android, please help. I thought about writing a test application. Faced such a task, how to change the text of RadioButtons to what I have in TXT in the assets folder? I have already learned how to parse the file, I can only display data through TextView, but it’s a problem with radiobuttons and, as luck would have it, I can’t find anything in Google.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anna Trusheva, 2016-10-04
@Anna_True_sheva

Understood. I wrote the parsed name of the option into a String variable and displayed it like this: radioButton.setText();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question