android - ListFragment with ExpandableListview -



android - ListFragment with ExpandableListview -

i have create list fragment has cursor adapter , need categorize result expandable list. tried add together list fragment within expandable list , didn't work. can help me that?

instead of doing so, create layout expandablelistview, this:

expandedlist.xml

<?xml version="1.0" encoding="utf-8"?> <expandablelistview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="match_parent"/>

pay attending android:id view. way listfragment can link without worrying. then, add together method listfragment:

@override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) { view view = inflater.inflate(r.layout.expandedlist, null); homecoming view; }

now, precise view inflating expandablelistview. save view class field, allow if available accross.

android expandablelistview android-listfragment

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -