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
This code worked for me:
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View root = super.onCreateView(inflater, container, savedInstanceState);
((TextView)root.findViewById(0x00ff0001)).setText("some text");
ListView list = (ListView) root.findViewById(android.R.id.list);
list.setEmptyView(root.findViewById(0x00ff0001));
return root;
}