Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can i catch the changing tab?

See original GitHub issue

Hi, i was looked the closed issues and saw Fragment implementing and i have a problem with this too. It’s not clear to how to catch and how to change Fragments with your library. i have a 2 Fragments and i want to implement this with ViewPager but i can not. Please give an example for this. Thanks. By the way i 'm implementing your library with these codes:


       mViewPager.setAdapter(new PagerAdapter() {
        public int getCount() {
            return 2;

        public boolean isViewFromObject(final View view, final Object object) {
            return view.equals(object);

        public void destroyItem(final View container, final int position, final Object object) {
            ((ViewPager) container).removeView((View) object);

        public Object instantiateItem(final ViewGroup container, final int position) {
            final View view = new View(getBaseContext());
            return view;

    mCenterNavigationTabStrip.setViewPager(mViewPager, 1);


Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

canberkcakmakcommented, Jun 21, 2016

I’m try. Asked stackoverflow but no one answered. Anyway good library, perfect ui but it’s look like im going to delete this. Have a good day.

GIGAMOLEcommented, Jun 21, 2016

Try to find some tutorial in net.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular How to catch mat-tab changed event - Stack Overflow
You can do it in this way <mat-tab-group [(selectedIndex)]="selectedTabIndex" (selectedTabChange)="onTabChanged($event);"> <mat-tab ...
Read more >
how to catch input change event when moving to another tab
i have RadTabStrip, with General and other tabs. there are input fields and save button on the general tab.
Read more >
How can I catch tab change on a TabControl? - C# / C Sharp
I would like to catch the tab change before it occurs. There is a SelectedIndexChanged event to catch the change after it occurs....
Read more >
How to Change New Tab Page, Search & Start in Edge
Show you how you can change the page that Edge goes to when clicking the new tab page in Edge, also shows you...
Read more >
How to catch the admin tab switching event in Magento 2
How to catch the admin tab switching event in Magento 2 · var $tabs = $('#page_tabs') · if ($tabs.length) · var tabContent =...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found