Home
last modified time | relevance | path

Searched refs:mActionBar (Results 1 – 10 of 10) sorted by relevance

/frameworks/opt/photoviewer/activity/src/com/android/ex/photo/
DActionBarWrapper.java11 private final ActionBar mActionBar; field in ActionBarWrapper
28 mActionBar = actionBar; in ActionBarWrapper()
33 mActionBar.setDisplayHomeAsUpEnabled(showHomeAsUp); in setDisplayHomeAsUpEnabled()
38 mActionBar.addOnMenuVisibilityListener(new MenuVisiblityListenerWrapper(listener)); in addOnMenuVisibilityListener()
43 mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE); in setDisplayOptionsShowTitle()
48 return mActionBar.getTitle(); in getTitle()
53 mActionBar.setTitle(title); in setTitle()
58 mActionBar.setSubtitle(subtitle); in setSubtitle()
63 mActionBar.show(); in show()
68 mActionBar.hide(); in hide()
[all …]
DPhotoViewActivity.java34 private ActionBarWrapper mActionBar; field in PhotoViewActivity
123 if (mActionBar == null) { in getActionBarInterface()
124 mActionBar = new ActionBarWrapper(getActionBar()); in getActionBarInterface()
126 return mActionBar; in getActionBarInterface()
/frameworks/opt/photoviewer/appcompat/src/com/android/ex/photo/
DActionBarWrapper.java12 private final ActionBar mActionBar; field in ActionBarWrapper
29 mActionBar = actionBar; in ActionBarWrapper()
34 mActionBar.setDisplayHomeAsUpEnabled(showHomeAsUp); in setDisplayHomeAsUpEnabled()
39 mActionBar.addOnMenuVisibilityListener(new MenuVisiblityListenerWrapper(listener)); in addOnMenuVisibilityListener()
44 mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_TITLE, ActionBar.DISPLAY_SHOW_TITLE); in setDisplayOptionsShowTitle()
49 return mActionBar.getTitle(); in getTitle()
54 mActionBar.setTitle(title); in setTitle()
59 mActionBar.setSubtitle(subtitle); in setSubtitle()
64 mActionBar.show(); in show()
69 mActionBar.hide(); in hide()
[all …]
DPhotoViewActivity.java34 private ActionBarWrapper mActionBar; field in PhotoViewActivity
123 if (mActionBar == null) { in getActionBarInterface()
124 mActionBar = new ActionBarWrapper(getSupportActionBar()); in getActionBarInterface()
126 return mActionBar; in getActionBarInterface()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java55 @NonNull private FrameworkActionBarWrapper mActionBar; field in FrameworkActionBar
69 mActionBar = FrameworkActionBarWrapper.getActionBarWrapper(context, getCallBack(), in FrameworkActionBar()
84 mActionBar.inflateMenus(); in FrameworkActionBar()
107 mActionBar.setupActionBar(); in setupActionBar()
112 mActionBar.setHomeAsUp(homeAsUp); in setHomeAsUp()
117 mActionBar.setTitle(title); in setTitle()
122 mActionBar.setSubTitle(subtitle); in setSubtitle()
127 mActionBar.setIcon(icon); in setIcon()
141 MenuBuilder menu = mActionBar.getMenuBuilder(); in createMenuPopup()
142 OverflowMenuAdapter adapter = new OverflowMenuAdapter(menu, mActionBar.getPopupContext()); in createMenuPopup()
[all …]
DFrameworkActionBarWrapper.java57 @NonNull protected ActionBar mActionBar; field in FrameworkActionBarWrapper
84 mActionBar = actionBar; in FrameworkActionBarWrapper()
95 mActionBar.setTitle(title); in setTitle()
100 mActionBar.setSubtitle(subTitle); in setSubTitle()
105 mActionBar.setDisplayHomeAsUpEnabled(homeAsUp); in setHomeAsUp()
148 return mActionBar.getThemedContext(); in getActionMenuContext()
248 @NonNull private final WindowDecorActionBar mActionBar; field in FrameworkActionBarWrapper.WindowActionBarWrapper
258 mActionBar = ((WindowDecorActionBar) super.mActionBar); in WindowActionBarWrapper()
267 mActionBar.setNavigationMode(navMode); in setupActionBar()
287 if (!mActionBar.hasIcon() && icon != null) { in setIcon()
[all …]
/frameworks/base/core/java/android/app/
DDialog.java90 private ActionBar mActionBar; field in Dialog
208 return mActionBar; in getActionBar()
280 if (mActionBar == null && mWindow.hasFeature(Window.FEATURE_ACTION_BAR)) { in show()
284 mActionBar = new WindowDecorActionBar(this); in show()
393 if (mActionBar != null) mActionBar.setShowHideAnimationEnabled(true); in onStart()
400 if (mActionBar != null) mActionBar.setShowHideAnimationEnabled(false); in onStop()
851 mActionBar.dispatchMenuVisibilityChanged(true); in onMenuOpened()
868 mActionBar.dispatchMenuVisibilityChanged(false); in onPanelClosed()
995 if (mActionBar != null) { in onWindowStartingActionMode()
996 return mActionBar.startActionMode(callback); in onWindowStartingActionMode()
DActivity.java735 /*package*/ ActionBar mActionBar = null; field in Activity
925 if (mActionBar == null) { in onCreate()
928 mActionBar.setDefaultDisplayHomeAsUpEnabled(true); in onCreate()
1240 if (mActionBar != null) mActionBar.setShowHideAnimationEnabled(true); in onPostResume()
1570 if (mActionBar != null) mActionBar.setShowHideAnimationEnabled(false); in onStop()
1691 if (mActionBar != null) { in onConfigurationChanged()
1694 mActionBar.onConfigurationChanged(newConfig); in onConfigurationChanged()
2083 return mActionBar; in getActionBar()
2108 mActionBar = tbab; in setActionBar()
2110 mActionBar.invalidateOptionsMenu(); in setActionBar()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DActionBarActivityDelegate.java60 private ActionBar mActionBar; field in ActionBarActivityDelegate
123 if (mActionBar == null) { in getSupportActionBar()
124 mActionBar = createSupportActionBar(); in getSupportActionBar()
127 return mActionBar; in getSupportActionBar()
131 return mActionBar; in peekSupportActionBar()
135 mActionBar = actionBar; in setSupportActionBar()
/frameworks/base/docs/html/training/backward-compatible-ui/
Dnew-implementation.jd92 ActionBar mActionBar;
96 if (mActionBar == null) {
97 mActionBar = mActivity.getActionBar();
98 mActionBar.setNavigationMode(
107 mActionBar.addTab((ActionBar.Tab) tab.getTab());