In this blog explain ,how to set Array in TextView in android.
try this code.
....................................................................................................
String text="";
for(int i=0; i<ArrayList.size();i++){
String text1=ArratList.get(i);
text=text+text1;
}
text_view.setText(text);
try this code.
...............................................................................................
String[] s={1,2,3,4,5,6}
text_view.setText(s.toString(s));
try this code.
...............................................................................................
String[] s={1,2,3,4,5,6}
StringBuilder builder= new StringBuilder();
for(String y: s){
builder.append(y);
}
text_view.setText(builder,toString.trim());
0 comments