According to this link: ListFragment android developers
I want to set my custom layout for list, but it makes exceptions.
Here is the code:
p
A little bit late, but did not see this answer.
Inside Fragment:
@Override
public View onCreateView(final LayoutInflater inflater, final ViewGroup container,
final Bundle savedInstanceState) {
final View view = inflater.inflate(R.layout.fragment_list_activity,
container, false);
ListFragmentHelper.adaptView(view);
return view;
}
but bear in mind that in fragment_list_activity.xml you need to set the IDs android:id="@id/loading", android:id="@id/content" and android:id="@id/empty" for your views!