I have used Jake Wharton library for building viewpager with TabPageInicator , i have 7 tabs but i want 4 tabs to be viable and user can swipe to show other tabs , how can i do that?
https://github.com/JakeWharton/Android-ViewPagerIndicator
ViewPager pager = ( ViewPager ) getActivity().findViewById( R.id.pager ) ;
pager.setAdapter( adapter ) ;
TabPageIndicator indicator = ( TabPageIndicator ) getActivity().findViewById( R.id.indicator ) ;
indicator.setViewPager( pager ) ;
0 comments:
Post a Comment