android - SimpleAdapter in Fragment don't show the multicolumn list -


surfing on internet didn't found nothing argument apart question on site: here problem code good, list don't show. code:

@override   public void onactivitycreated(bundle savedinstancestate) {     super.onactivitycreated(savedinstancestate);     id = getarguments().getstring("id");     mylist = new arraylist<hashmap<string, string>>();     new myasynctask().execute(); //popolate mylist     mschedule = new simpleadapter(getactivity(), mylist, r.layout.rowlinerepair,             new string[] {"type", "description", "qta", "price"}, new int[] {r.id.type, r.id.description, r.id.qta, r.id.totale});     setlistadapter(mschedule);   } 

i'm using listfragment, same in fragment. need beacuse i'm creating multicolumn list. thanks

i resolved. in postexecute inserted:

mschedule = new simpleadapter(getactivity(), mylist, r.layout.rowlinerepair,         new string[] {"type", "description", "qta", "price"}, new int[] {r.id.type, r.id.description, r.id.qta, r.id.totale}); setlistadapter(mschedule); 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -