How can i catch the changing tab?
See original GitHub issueHi, 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() {
@Override
public int getCount() {
return 2;
}
@Override
public boolean isViewFromObject(final View view, final Object object) {
return view.equals(object);
}
@Override
public void destroyItem(final View container, final int position, final Object object) {
((ViewPager) container).removeView((View) object);
}
@Override
public Object instantiateItem(final ViewGroup container, final int position) {
final View view = new View(getBaseContext());
container.addView(view);
return view;
}
});
mCenterNavigationTabStrip.setViewPager(mViewPager, 1);
`
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Try to find some tutorial in net.