Java Code Examples for android.app.ActionBar.Tab#setTabListener()
The following examples show how to use
android.app.ActionBar.Tab#setTabListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DialtactsActivity.java From coursera-android with MIT License | 5 votes |
private void setupDialer() { final Tab tab = getActionBar().newTab(); tab.setContentDescription(R.string.dialerIconLabel); tab.setTabListener(mTabListener); tab.setIcon(R.drawable.ic_tab_dialer); getActionBar().addTab(tab); }
Example 2
Source File: DialtactsActivity.java From coursera-android with MIT License | 5 votes |
private void setupCallLog() { final Tab tab = getActionBar().newTab(); tab.setContentDescription(R.string.recentCallsIconLabel); tab.setIcon(R.drawable.ic_tab_recent); tab.setTabListener(mTabListener); getActionBar().addTab(tab); }
Example 3
Source File: DialtactsActivity.java From coursera-android with MIT License | 5 votes |
private void setupFavorites() { final Tab tab = getActionBar().newTab(); tab.setContentDescription(R.string.contactsFavoritesLabel); tab.setIcon(R.drawable.ic_tab_all); tab.setTabListener(mTabListener); getActionBar().addTab(tab); }
Example 4
Source File: SectionAdapter.java From grilledui with BSD 2-Clause "Simplified" License | 4 votes |
private Tab createTab(String title) { Tab tab = actionBar.newTab(); tab.setText(title.toUpperCase(Locale.getDefault())); tab.setTabListener(tabListener); return(tab); }