Skip to content

iHaiderAli/CustomTabsWithViewPager

Repository files navigation

Custom Tabs Layout With ViewPager

tab1.png tab2.png

To use this "customTabsWithViewPager" code into your existing project you need to follow some steps.

1. Add this library into module level app
      compile 'com.android.support:design:25.3.1'
2. Add tab layout into yyour design where you want tabs 
3. Initialize View pager adapter and then add fragments into it then set this adapter to view pager.
4. pass the view pager to tablayout by calling setupWithViewPager().

Now you are good to go. :-)

Authors

  • Haider Ali

Contact Me

if you have any query or want to discuss some thing realted to project or anything else please feel free to contact me.

Gmail: [email protected]
Skype: haider7577 
Linked in: https://www.linkedin.com/in/haider-ali-203ab7126/