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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -