Friday, January 11, 2013

[android-developers] Re: ListFragment and actionbar



W dniu piątek, 11 stycznia 2013 08:44:42 UTC+1 użytkownik Summer napisał:
Hi, 
I am developing an application which I will have multiple tabs and in one of the tab I will have listview. 
--So if I use actionBar and Fragment, setListAdapter() in the Fragment won't work.

To use setListAdapter() your activity needs to extend ListActivity. But You have a Fragment it won't work. Instead use:

listView.SetAdapter(myAdapter);
 
--if I use actionBar and ListFragment, ActionBar.TabListener can't accept listFragment. 

Any tip/help?
Thanks

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate