android - ViewPager is empty after replace transaction of fragment -
| btn1 | btn2 | btn3 | btn4 |
=---------------------------=
container
=---------------------------=
hi there, i'm having 4 buttons make fragment transaction view pager fragment.
first click on buttons works fine, second click causes view pager empty although values in adapter correct container empty (offset pages empty if i'm swiping create other pages correctly!)
madapter.notifydatasetchanged();
for view pager adapter didn't work out. , option :
public int getitemposition(object object) { return position_none; }
is create pages beginning cannot done need save of views , pages.
the solution have in mind run on current page , offset:
madapter.instantiateitem(mpager, mpager.getcurrentitem()); madapter.instantiateitem(mpager, mpager.getcurrentitem() + );
is there clean , nice solution solve issue?
thanks help
Comments
Post a Comment