Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cant use it with CustomViewPager #298

Open
shakiz opened this issue Dec 17, 2019 · 0 comments
Open

Cant use it with CustomViewPager #298

shakiz opened this issue Dec 17, 2019 · 0 comments

Comments

@shakiz
Copy link

shakiz commented Dec 17, 2019

Your tab library working fine with android default viewPager. But i am trying to use it with custom viewPager but not working and not showing any error. My CustomViewPager extends the base ViewPager of android , which should work along with your library.
I am adding my CustomViewPager and respective code for further analysis.It would be great if i can use your library along with mine customViewPager. Though you have done amazing work.

    CustomViewPager viewPager = findViewById(R.id.viewpager);
    viewPager.setAdapter(new MyPagerAdapter(getSupportFragmentManager()));
    viewPager.setOffscreenPageLimit(0);
    SmartTabLayout viewPagerTab = (SmartTabLayout) findViewById(R.id.viewpagertab);
    viewPagerTab.setViewPager(viewPager);

My CustomViewPager code

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant