String hallo = "blabla " + "jojo " + "\n" + "doj " + "drasl " +"\n";
InputStream is = new ByteArrayInputStream(hallo.getBytes());
BufferedReader in = new BufferedReader(new InputStreamReader(is));
String reader;
while ((reader = in.readLine()) != null) {
String[] RowData = reader.split(" ");
String eitt = RowData[0];
String tvo = RowData[1];
I have a string with the same format as the hallo
string, except I don't know how many lines there are. I'm trying to put the information in a table layout (or what ever is most convenient).
How do I automatically create the exact number of textview
windows in the table layout as I need, and automatically input my string value?
By the way, the textview
is inside a scrollview
layout, if that matters.