Am getting Error inflating fragment error while running calling an Activity which having fragments.
CheckList is Activity which contains listview
I just removed onCreateView
code which contains inflating xml
in listview fragment
and move into onActivityCreated
method with that its working.
The reason may be:
ListFragment has a default layout that consists of a single list view. However, if you desire, you can customize the fragment layout by returning your own view hierarchy from onCreateView(LayoutInflater, ViewGroup, Bundle). To do this, your view hierarchy must contain a ListView object with the id "@android:id/list" (or list if it's in code)
So my listview extends ListFragment and not conatining list in xml , and directly we can setListAdapter in onActivityCreated rather than in onCreateView.