-
Notifications
You must be signed in to change notification settings - Fork 213
Description
Since I was using this library, I was not happy with the setContentView method. It is because it is not similar to the methods you would use when you normalle use Fragments.
When I use ProgressListFragment it is like magic. Even when I use custom layout in the onCreateView it gets the ListView and does all the magic automatically.
Here is the solution in my mind. I hope I can tell it well.
If you have a FrameLayout in the content_container FrameLayout on top of the emptyView. You can use that id as a mContentView. When developer use custom layout in onCreateView and have a view with that id, you can use it right away. If the developer don't have a view with that id, you can expect usage of setContentView. If the developer doesn't do any of that, you can throw a IllegalStateException.
What do you think? Sorry if the English is not good.