Home | History | Annotate | Download | only in horizontalpaging

Lines Matching refs:Tab

55         // state with the tab state. (See mViewPager.setOnPageChangeListener() and onTabSelected().)
71 // When swiping between different sections, select the corresponding tab. We can also use
72 // ActionBar.Tab#select() to do this if we have a reference to the Tab.
83 // For each of the sections in the app, add a tab to the action bar.
85 // Create a tab with text corresponding to the page title defined by the adapter. Also
87 // callback (listener) for when this tab is selected.
97 * Update {@link ViewPager} after a tab has been selected in the ActionBar.
99 * @param tab Tab that was selected.
106 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {
107 // When the given tab is selected, tell the ViewPager to switch to the corresponding page.
108 mViewPager.setCurrentItem(tab.getPosition());
116 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {
123 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {