i want add object listview.objects retriving calender , retriving data using each loop how can show listview thet objects.
public void getcal() { thread t = new thread(new runnable() { @override public void run() { try { string pagetoken = null; { events = client.events().list("primary").setpagetoken(pagetoken).execute(); list<event> items = events.getitems(); (event event : items) { log.e("events",event.getsummary()); } pagetoken = events.getnextpagetoken(); } while (pagetoken != null); }catch(ioexception e) { e.printstacktrace(); } } }); t.start(); }
to explain way listview beyond frame here in stackoverflow. have item layout.xml listview components need show information. have custom adapter list view, if basic adapters doesen´t fulfill needs. google best teacher, there lot of great tutorials listview:
http://www.vogella.com/articles/androidlistview/article.html
Comments
Post a Comment