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
Another solution that worked for me as well is just to put this line
instead of your list view.
You are able to build your own content on top of it or surround it with some other views. For example, here is how my layout looks like: