-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Why I can't add a instance of Fragment? #12
Comments
Hi, @ppamorim Should use the v13 of utility.
|
Sorry mistake. |
@ogaclejapan Based on what you said that? |
Hi, @ppamorim |
You're wrong. |
Please try checked Don’t keep activities in the developer mode. @Override
public Object instantiateItem(ViewGroup container, int position) {
Object item = super.instantiateItem(container, position);
Log.d("DEBUG", "position: " + position + " " + item.toString());
if (item instanceof Fragment) {
mHolder.put(position, new WeakReference<Fragment>((Fragment) item));
}
return item;
} |
Hi, @ppamorim What are the reasons why you think you have the better of this code than the current implementation? The library utility that provides adapters is optional, Although I'm sorry, |
How to do this? |
Solved! |
This can be a problem:
I need to have a:
Why, If I need create a instance of the Fragment, I need use this.
The text was updated successfully, but these errors were encountered: