/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
D | ActionBarDisplayOptions.java | 22 import android.support.v7.app.ActionBar; 23 import android.support.v7.app.ActionBar.Tab; 38 implements View.OnClickListener, ActionBar.TabListener { 40 private ActionBar.LayoutParams mCustomViewLayoutParams; 58 mCustomViewLayoutParams = new ActionBar.LayoutParams( in onCreate() 61 final ActionBar bar = getSupportActionBar(); in onCreate() 70 bar.setListNavigationCallbacks(listAdapter, new ActionBar.OnNavigationListener() { in onCreate() 97 final ActionBar bar = getSupportActionBar(); in onClick() 101 flags = ActionBar.DISPLAY_HOME_AS_UP; in onClick() 104 flags = ActionBar.DISPLAY_SHOW_HOME; in onClick() [all …]
|
D | ToolbarDisplayOptions.java | 22 import android.support.v7.app.ActionBar; 38 private ActionBar.LayoutParams mCustomViewLayoutParams; 58 mCustomViewLayoutParams = new ActionBar.LayoutParams( in onCreate() 76 final ActionBar bar = getSupportActionBar(); in onClick() 80 flags = ActionBar.DISPLAY_HOME_AS_UP; in onClick() 83 flags = ActionBar.DISPLAY_SHOW_HOME; in onClick() 86 flags = ActionBar.DISPLAY_USE_LOGO; in onClick() 90 flags = ActionBar.DISPLAY_SHOW_TITLE; in onClick() 93 flags = ActionBar.DISPLAY_SHOW_CUSTOM; in onClick() 96 ActionBar.LayoutParams lp = mCustomViewLayoutParams; in onClick()
|
D | ActionBarTabs.java | 23 import android.support.v7.app.ActionBar; 24 import android.support.v7.app.ActionBar.Tab; 44 final ActionBar bar = getSupportActionBar(); in onAddTab() 53 final ActionBar bar = getSupportActionBar(); in onRemoveTab() 60 final ActionBar bar = getSupportActionBar(); in onToggleTabs() 62 if (bar.getNavigationMode() == ActionBar.NAVIGATION_MODE_TABS) { in onToggleTabs() 63 bar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); in onToggleTabs() 65 bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); in onToggleTabs() 86 private class TabListener implements ActionBar.TabListener {
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ToolbarWidgetWrapper.java | 23 import android.app.ActionBar; 62 ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_USE_LOGO; 86 private int mNavigationMode = ActionBar.NAVIGATION_MODE_STANDARD; 103 R.styleable.ActionBar, R.attr.actionBarStyle, 0); in ToolbarWidgetWrapper() 135 setDisplayOptions(mDisplayOpts | ActionBar.DISPLAY_SHOW_CUSTOM); in ToolbarWidgetWrapper() 201 int opts = ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_SHOW_HOME | in detectDisplayOptions() 202 ActionBar.DISPLAY_USE_LOGO; in detectDisplayOptions() 204 opts |= ActionBar.DISPLAY_HOME_AS_UP; in detectDisplayOptions() 261 if ((mDisplayOpts & ActionBar.DISPLAY_SHOW_TITLE) != 0) { in setTitleInt() 274 if ((mDisplayOpts & ActionBar.DISPLAY_SHOW_TITLE) != 0) { in setSubtitle() [all …]
|
D | ActionBarView.java | 22 import android.app.ActionBar; 76 ActionBar.DISPLAY_SHOW_HOME | 77 ActionBar.DISPLAY_USE_LOGO | 78 ActionBar.DISPLAY_HOME_AS_UP | 79 ActionBar.DISPLAY_SHOW_CUSTOM | 80 ActionBar.DISPLAY_SHOW_TITLE | 81 ActionBar.DISPLAY_TITLE_MULTIPLE_LINES; 164 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ActionBar, in ActionBarView() 168 ActionBar.NAVIGATION_MODE_STANDARD); in ActionBarView() 213 mNavigationMode = ActionBar.NAVIGATION_MODE_STANDARD; in ActionBarView() [all …]
|
D | ScrollingTabContainerView.java | 23 import android.app.ActionBar; 280 private TabView createTabView(Context context, ActionBar.Tab tab, boolean forAdapter) { in createTabView() 297 public void addTab(ActionBar.Tab tab, boolean setSelected) { in addTab() 312 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { in addTab() 364 private ActionBar.Tab mTab; 369 public TabView(Context context, ActionBar.Tab tab, boolean forList) { in TabView() 380 public void bindTab(ActionBar.Tab tab) { in bindTab() 397 return ActionBar.Tab.class.getName(); in getAccessibilityClassName() 412 final ActionBar.Tab tab = mTab; in update() 504 public ActionBar.Tab getTab() { in getTab() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ToolbarWidgetWrapper.java | 20 import android.app.ActionBar; 61 ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_USE_LOGO; 85 private int mNavigationMode = ActionBar.NAVIGATION_MODE_STANDARD; 103 null, R.styleable.ActionBar, R.attr.actionBarStyle, 0); in ToolbarWidgetWrapper() 135 setDisplayOptions(mDisplayOpts | ActionBar.DISPLAY_SHOW_CUSTOM); in ToolbarWidgetWrapper() 201 int opts = ActionBar.DISPLAY_SHOW_TITLE | ActionBar.DISPLAY_SHOW_HOME | in detectDisplayOptions() 202 ActionBar.DISPLAY_USE_LOGO; in detectDisplayOptions() 204 opts |= ActionBar.DISPLAY_HOME_AS_UP; in detectDisplayOptions() 256 if ((mDisplayOpts & ActionBar.DISPLAY_SHOW_TITLE) != 0) { in setTitleInt() 269 if ((mDisplayOpts & ActionBar.DISPLAY_SHOW_TITLE) != 0) { in setSubtitle() [all …]
|
D | ScrollingTabContainerView.java | 26 import android.support.v7.app.ActionBar; 288 private TabView createTabView(ActionBar.Tab tab, boolean forAdapter) { in createTabView() 305 public void addTab(ActionBar.Tab tab, boolean setSelected) { in addTab() 320 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { in addTab() 381 private ActionBar.Tab mTab; 386 public TabView(Context context, ActionBar.Tab tab, boolean forList) { in TabView() 404 public void bindTab(ActionBar.Tab tab) { in bindTab() 422 event.setClassName(ActionBar.Tab.class.getName()); in onInitializeAccessibilityEvent() 431 info.setClassName(ActionBar.Tab.class.getName()); in onInitializeAccessibilityNodeInfo() 447 final ActionBar.Tab tab = mTab; in update() [all …]
|
/frameworks/opt/photoviewer/activity/src/com/android/ex/photo/ |
D | ActionBarWrapper.java | 3 import android.app.ActionBar; 11 private final ActionBar mActionBar; 13 private class MenuVisiblityListenerWrapper implements ActionBar.OnMenuVisibilityListener { 27 public ActionBarWrapper(ActionBar actionBar) { in ActionBarWrapper() 43 mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE); in setDisplayOptionsShowTitle()
|
/frameworks/opt/photoviewer/appcompat/src/com/android/ex/photo/ |
D | ActionBarWrapper.java | 5 import android.support.v7.app.ActionBar; 12 private final ActionBar mActionBar; 14 private class MenuVisiblityListenerWrapper implements ActionBar.OnMenuVisibilityListener { 28 public ActionBarWrapper(ActionBar actionBar) { in ActionBarWrapper() 44 mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE); in setDisplayOptionsShowTitle()
|
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/app/ |
D | ActionBarTabsPager.java | 22 import android.app.ActionBar; 23 import android.app.ActionBar.Tab; 49 final ActionBar bar = getActionBar(); in onCreate() 50 bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); in onCreate() 51 bar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE); in onCreate() 84 implements ActionBar.TabListener, ViewPager.OnPageChangeListener { 86 private final ActionBar mActionBar; 109 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab()
|
D | FragmentNestingPagerSupport.java | 22 import android.app.ActionBar; 23 import android.app.ActionBar.Tab; 45 final ActionBar bar = getActionBar(); in onCreate() 46 bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); in onCreate() 47 bar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE); in onCreate() 82 implements ActionBar.TabListener, ViewPager.OnPageChangeListener { 84 private final ActionBar mActionBar; 107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab()
|
D | FragmentNestingStatePagerSupport.java | 22 import android.app.ActionBar; 23 import android.app.ActionBar.Tab; 45 final ActionBar bar = getActionBar(); in onCreate() 46 bar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); in onCreate() 47 bar.setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE); in onCreate() 82 implements ActionBar.TabListener, ViewPager.OnPageChangeListener { 84 private final ActionBar mActionBar; 107 public void addTab(ActionBar.Tab tab, Class<?> clss, Bundle args) { in addTab()
|
/frameworks/base/docs/html/training/backward-compatible-ui/ |
D | new-implementation.jd | 57 …ode> simply proxies all method calls to its contained {@link android.app.ActionBar.Tab} object.</p> 59 …<code>CompatTabHoneycomb</code> using the new {@link android.app.ActionBar.Tab ActionBar.Tab} APIs… 64 ActionBar.Tab mTab; 69 // Proxy to new ActionBar.newTab API 74 // Proxy to new ActionBar.Tab.setText API 86 …bstract class that proxies method calls to an actual {@link android.app.ActionBar}, obtained from … 88 …code>TabHelperHoneycomb</code>, proxying method calls to the {@link android.app.ActionBar} API:</p> 92 ActionBar mActionBar; 99 ActionBar.NAVIGATION_MODE_TABS); 106 // native tab object is an ActionBar.Tab. [all …]
|
D | abstracting.jd | 18 <li><a href="#abstract-actionbar-tab">Abstract ActionBar.Tab</a></li> 19 <li><a href="#abstract-actionbar-methods">Abstract ActionBar Tab Methods</a></li> 39 …l navigation in your application. Unfortunately, the {@link android.app.ActionBar} APIs are only a… 63 …The key APIs for tabs are in {@link android.app.ActionBar} and {@link android.app.ActionBar.Tab Ac… 70 <h2 id="abstract-actionbar-tab">Abstract ActionBar.Tab</h2> 72 …ct class representing a tab, that mirrors the {@link android.app.ActionBar.Tab ActionBar.Tab} inte… 93 <h2 id="abstract-actionbar-methods">Abstract ActionBar Tab Methods</h2> 95 …ctivity, like {@link android.app.ActionBar#newTab ActionBar.newTab()} and {@link android.app.Actio…
|
/frameworks/support/core-ui/jellybean-mr2/android/support/v4/app/ |
D | ActionBarDrawerToggleJellybeanMR2.java | 21 import android.app.ActionBar; 37 final ActionBar actionBar = activity.getActionBar(); in setActionBarUpIndicator() 47 final ActionBar actionBar = activity.getActionBar(); in setActionBarDescription() 55 final ActionBar actionBar = activity.getActionBar(); in getThemeUpIndicator()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | ActionBarDrawerToggle.java | 18 import android.app.ActionBar; 513 final ActionBar actionBar = mActivity.getActionBar(); in getActionBarThemedContext() 525 final ActionBar actionBar = mActivity.getActionBar(); in isNavigationVisible() 527 && (actionBar.getDisplayOptions() & ActionBar.DISPLAY_HOME_AS_UP) != 0; in isNavigationVisible() 532 final ActionBar actionBar = mActivity.getActionBar(); in setActionBarUpIndicator() 570 final ActionBar actionBar = mActivity.getActionBar(); in getActionBarThemedContext() 582 final ActionBar actionBar = mActivity.getActionBar(); in isNavigationVisible() 584 (actionBar.getDisplayOptions() & ActionBar.DISPLAY_HOME_AS_UP) != 0; in isNavigationVisible() 589 final ActionBar actionBar = mActivity.getActionBar(); in setActionBarUpIndicator() 598 final ActionBar actionBar = mActivity.getActionBar(); in setActionBarDescription()
|
D | ActionBarDrawerToggleHoneycomb.java | 21 import android.app.ActionBar; 56 final ActionBar actionBar = activity.getActionBar(); in setActionBarUpIndicator() 77 final ActionBar actionBar = activity.getActionBar(); in setActionBarDescription() 105 setHomeAsUpIndicator = ActionBar.class.getDeclaredMethod("setHomeAsUpIndicator", in SetIndicatorInfo() 107 setHomeActionContentDescription = ActionBar.class.getDeclaredMethod( in SetIndicatorInfo()
|
D | AppCompatDelegateImplBase.java | 92 ActionBar mActionBar; 141 public ActionBar getSupportActionBar() { 148 final ActionBar peekSupportActionBar() { 186 ActionBar ab = getSupportActionBar(); 214 final ActionBar ab = getSupportActionBar(); 215 return ab != null && (ab.getDisplayOptions() & ActionBar.DISPLAY_HOME_AS_UP) != 0; 220 ActionBar ab = getSupportActionBar(); 229 ActionBar ab = getSupportActionBar();
|
D | NavItemSelectedListener.java | 28 private final ActionBar.OnNavigationListener mListener; 30 public NavItemSelectedListener(ActionBar.OnNavigationListener listener) { in NavItemSelectedListener()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | NavItemSelectedListener.java | 20 import android.app.ActionBar; 29 private final ActionBar.OnNavigationListener mListener; 31 public NavItemSelectedListener(ActionBar.OnNavigationListener listener) { in NavItemSelectedListener()
|
/frameworks/support/core-ui/honeycomb/android/support/v4/app/ |
D | ActionBarDrawerToggleHoneycomb.java | 21 import android.app.ActionBar; 56 final ActionBar actionBar = activity.getActionBar(); in setActionBarUpIndicator() 78 final ActionBar actionBar = activity.getActionBar(); in setActionBarDescription() 106 setHomeAsUpIndicator = ActionBar.class.getDeclaredMethod("setHomeAsUpIndicator", in SetIndicatorInfo() 108 setHomeActionContentDescription = ActionBar.class.getDeclaredMethod( in SetIndicatorInfo()
|
/frameworks/base/docs/html/training/implementing-navigation/ |
D | lateral.jd | 173 <p>To create tabs using {@link android.app.ActionBar}, you need to enable 174 {@link android.app.ActionBar#NAVIGATION_MODE_TABS}, then create several instances of 175 {@link android.app.ActionBar.Tab} and supply an implementation of 176 the {@link android.app.ActionBar.TabListener} interface for each one. 183 final ActionBar actionBar = getActionBar(); 187 actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); 190 ActionBar.TabListener tabListener = new ActionBar.TabListener() { 191 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { 195 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) { 199 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) { [all …]
|
/frameworks/base/docs/html/training/appbar/ |
D | setting-up.jd | 43 activities that use the default theme have an {@link android.app.ActionBar} 45 native {@link android.app.ActionBar} over various Android releases. As a 46 result, the native {@link android.app.ActionBar} behaves differently 96 {@link android.app.ActionBar} class to provide the app bar. For example: 117 android:theme="@style/ThemeOverlay.AppCompat.ActionBar" 167 android.support.v7.app.ActionBar} class. This approach lets you do a number of useful 172 To use the {@link android.support.v7.app.ActionBar} utility methods, call the 176 appcompat {@link android.support.v7.app.ActionBar} object. 178 android.support.v7.app.ActionBar} methods to adjust the app bar. For example, 179 to hide the app bar, call {@link android.support.v7.app.ActionBar#hide [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | FrameworkActionBarWrapper.java | 34 import android.app.ActionBar; 35 import android.app.ActionBar.Tab; 36 import android.app.ActionBar.TabListener; 58 @NonNull protected ActionBar mActionBar; 84 @NonNull ActionBar actionBar) { in FrameworkActionBarWrapper() 275 if (navMode == ActionBar.NAVIGATION_MODE_TABS) { in setupActionBar()
|