Lines Matching refs:tab
41 you how to create a tab layout with swipe views for switching between tabs, or how to show
62 a separate page (a separate tab) in the layout.</p>
189 // Create a tab listener that is called when the user changes tabs.
191 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {
192 // show the given tab
195 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) {
196 // hide the given tab
199 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) {
204 // Add 3 tabs, specifying the tab's text and TabListener
215 depends on how you've constructed your content. But if you're using fragments for each tab with
217 section shows how to switch between pages when the user selects a tab and also update the selected
218 tab when the user swipes between pages.</p>
224 a tab, implement your {@link android.app.ActionBar.TabListener} to select the appropriate page
233 // Create a tab listener that is called when the user changes tabs.
235 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {
236 // When the tab is selected, switch to the
238 mViewPager.setCurrentItem(tab.getPosition());
245 <p>Likewise, you should select the corresponding tab when the user swipes between pages with a
248 the current tab each time the page changes. For example:</p>
261 // corresponding tab.