android - Disable some tabs when using ViewPagerIndicator -
i trying create wizard type of functionality in android app, couple of steps need followed. each of steps represented in own fragment , fragments placed in fragmentpager. using viewpagerindicator [1] well.
what i'm interested in somehow have of steps "disabled" (so not allowing user scroll corresponding fragments, although tab headers visible ). user able navigate step 1's tab @ beginning, (after validation) tabs 1 , 2, 1, 2 , 3 , on...
any ideas best way implement this?
[1] - http://viewpagerindicator.com/
thanks
have try add fragments when user pass validation?
after validation in fragmenttab1, add fragmenttab2 pageadapter , notifydatasetchange after every new addition.
if pageadapter class of library doesnt it, you'll need rewrite methods or create own pageadapter.
Comments
Post a Comment