-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to not use setContentView #24
Comments
@tasomaniac Good point, I will try to do this in the next release! |
I would be really cool. It would mean that the code will be fully And later if the developer decide to integrate it, he will just add On Mon, Nov 24, 2014, 5:22 PM Evgeny Shishkin [email protected]
|
Dear Johnkil, java.lang.IllegalStateException: Content view not yet created ...on what do you think depends the problem? Thanks and Best Regards |
I'm having the same problem as @mitsus pointed. |
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 useFragments
.When I use
ProgressListFragment
it is like magic. Even when I use custom layout in theonCreateView
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 thecontent_container
FrameLayout
on top of the emptyView. You can use that id as a mContentView. When developer use custom layout inonCreateView
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 ofsetContentView
. 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.
The text was updated successfully, but these errors were encountered: