Answer the question
In order to leave comments, you need to log in
How to get individual rows from an array?
Hello. The application needs to break the string into words and display the words on the screen in separate TextViews. Tell me how to do it? I split the phrase using split(" ") by space, I get an array of words, then I need to put each one in a separate TextView (and put all the textView in a RelativeLayout, for example, placed in the markup), I don’t understand how to implement this yet ...
String[] words = phrase.split(" ");
rl2 = (RelativeLayout) findViewById(R.id.rl2);
Answer the question
In order to leave comments, you need to log in
Use GridView . And create a TextView programmatically:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question