android - Size limit on the size of strings in an ExpandableListView? -


i need display 5 different groups of strings. of items in these strings 1 or 2 sentences long. considering using expandablelistview. user click 1 of 5 categories , open strings.

is there string cut off strings in expandablelistview , listview or way display more sentence of information? don't want strings cut off. note, not asking number of elements in list.

public class happystuff extends expandablelistactivity {  private static final string name = "name"; private static final string is_even = "is_even"; private expandablelistadapter madapter;  @override public void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.somelayout);      list<map<string, string>> somedata = new arraylist<map<string, string>>();     list<list<map<string, string>>> someotherdata = new arraylist<list<map<string, string>>>(); //from here     (int = 0; < 1; i++) {         map<string, string> curgroupmap = new hashmap<string, string>();         somedata.add(curgroupmap);         curgroupmap.put(name, "it's wonderful life");         curgroupmap.put(is_even, (i % 2 == 0) ? "this group even" : "this group odd");          list<map<string, string>> children3 = new arraylist<map<string, string>>();         {             map<string, string> curchildmap = new hashmap<string, string>();             children3.add(curchildmap);             curchildmap.put(is_even,  "and it's beautiful day in neighborhood");         }         someotherdata.add(children3);     } //to here //you can keep on adding new instances    supermagnificentadapter = new simpleexpandablelistadapter(             this,             somedata,             r.layout.somespecialtypeoflayout,             new string[] { name, is_even },             new int[] { r.id.text1, r.id.text2 },             childdata,             r.layout.rowsimpleitemlist2,             new string[] { name, is_even },             new int[] { r.id.text1, r.id.text2 }             );     setlistadapter(supermagnificentadapter); }  } 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -