Home
last modified time | relevance | path

Searched refs:mToolbar (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DToolbarWidgetWrapper.java66 private Toolbar mToolbar; field in ToolbarWidgetWrapper
96 mToolbar = toolbar; in ToolbarWidgetWrapper()
101 mNavIcon = mToolbar.getNavigationIcon(); in ToolbarWidgetWrapper()
133 setCustomView(LayoutInflater.from(mToolbar.getContext()).inflate(customNavId, in ToolbarWidgetWrapper()
134 mToolbar, false)); in ToolbarWidgetWrapper()
140 final ViewGroup.LayoutParams lp = mToolbar.getLayoutParams(); in ToolbarWidgetWrapper()
142 mToolbar.setLayoutParams(lp); in ToolbarWidgetWrapper()
150 mToolbar.setContentInsetsRelative(Math.max(contentInsetStart, 0), in ToolbarWidgetWrapper()
156 mToolbar.setTitleTextAppearance(mToolbar.getContext(), titleTextStyle); in ToolbarWidgetWrapper()
162 mToolbar.setSubtitleTextAppearance(mToolbar.getContext(), subtitleTextStyle); in ToolbarWidgetWrapper()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DToolbarWidgetWrapper.java69 Toolbar mToolbar; field in ToolbarWidgetWrapper
101 mToolbar = toolbar; in ToolbarWidgetWrapper()
137 setCustomView(LayoutInflater.from(mToolbar.getContext()).inflate(customNavId, in ToolbarWidgetWrapper()
138 mToolbar, false)); in ToolbarWidgetWrapper()
144 final ViewGroup.LayoutParams lp = mToolbar.getLayoutParams(); in ToolbarWidgetWrapper()
146 mToolbar.setLayoutParams(lp); in ToolbarWidgetWrapper()
154 mToolbar.setContentInsetsRelative(Math.max(contentInsetStart, 0), in ToolbarWidgetWrapper()
160 mToolbar.setTitleTextAppearance(mToolbar.getContext(), titleTextStyle); in ToolbarWidgetWrapper()
166 mToolbar.setSubtitleTextAppearance(mToolbar.getContext(), subtitleTextStyle); in ToolbarWidgetWrapper()
171 mToolbar.setPopupTheme(popupTheme); in ToolbarWidgetWrapper()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DNavigationView.java47 private final DocumentsToolbar mToolbar; field in NavigationView
62 mToolbar = toolbar; in NavigationView()
69 mToolbar.setNavigationOnClickListener( in NavigationView()
114 mToolbar.setTitle(null); in update()
122 mToolbar.setNavigationIcon(getActionBarIcon()); in update()
123 mToolbar.setNavigationContentDescription(R.string.drawer_open); in update()
129 mToolbar.setTitle(title); in update()
132 mToolbar.setTitle(null); in update()
137 if (DEBUG) Log.d(TAG, "Final toolbar title is: " + mToolbar.getTitle()); in update()
153 return mToolbar.getContext().getDrawable(R.drawable.ic_hamburger); in getActionBarIcon()
DDrawerController.java127 private Toolbar mToolbar; field in DrawerController.RuntimeDrawerController
133 mToolbar = drawerToolbar; in RuntimeDrawerController()
170 mToolbar.setTitle(title); in setTitle()
186 Metrics.logDrawerOpened(mToolbar.getContext(), mTrigger); in onDrawerOpened()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DDrawerLayoutDoubleActivity.java44 private Toolbar mToolbar; field in DrawerLayoutDoubleActivity
73 mToolbar = (Toolbar) findViewById(R.id.toolbar); in onContentViewSet()
74 mToolbar.setTitle(R.string.drawer_title); in onContentViewSet()
75 setSupportActionBar(mToolbar); in onContentViewSet()
85 mToolbar.setBackgroundColor(metalBlueColor); in onContentViewSet()
115 mToolbar.setTitle(Shakespeare.TITLES[position]); in onItemClick()
DToolbarActionBarActivity.java25 private Toolbar mToolbar; field in ToolbarActionBarActivity
34 mToolbar = (Toolbar) findViewById(R.id.toolbar); in onContentViewSet()
35 setSupportActionBar(mToolbar); in onContentViewSet()
DDrawerLayoutActivity.java50 private Toolbar mToolbar; field in DrawerLayoutActivity
78 mToolbar = (Toolbar) findViewById(R.id.toolbar); in onContentViewSet()
79 mToolbar.setTitle(R.string.drawer_title); in onContentViewSet()
80 setSupportActionBar(mToolbar); in onContentViewSet()
117 mToolbar.setBackgroundColor(metalBlueColor); in onContentViewSet()
202 mToolbar.setTitle(Shakespeare.TITLES[position]); in onItemClick()
/frameworks/support/design/src/android/support/design/widget/
DCollapsingToolbarLayout.java108 private Toolbar mToolbar; field in CollapsingToolbarLayout
289 if (mToolbar == null && mContentScrim != null && mScrimAlpha > 0) { in draw()
341 mToolbar = null; in ensureToolbar()
346 mToolbar = (Toolbar) findViewById(mToolbarId); in ensureToolbar()
347 if (mToolbar != null) { in ensureToolbar()
348 mToolbarDirectChild = findDirectChild(mToolbar); in ensureToolbar()
352 if (mToolbar == null) { in ensureToolbar()
363 mToolbar = toolbar; in ensureToolbar()
396 if (mCollapsingTitleEnabled && mToolbar != null) { in updateDummyView()
401 mToolbar.addView(mDummyView, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); in updateDummyView()
[all …]
/frameworks/support/design/tests/src/android/support/design/widget/
DAppBarWithCollapsingToolbarTest.java39 (CollapsingToolbarLayout.LayoutParams) mToolbar.getLayoutParams(); in testPinnedToolbar()
52 final int toolbarHeight = mToolbar.getHeight(); in testPinnedToolbar()
139 (CollapsingToolbarLayout.LayoutParams) mToolbar.getLayoutParams(); in testScrollingToolbar()
154 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbar()
243 (CollapsingToolbarLayout.LayoutParams) mToolbar.getLayoutParams(); in testPinnedToolbarAndAnchoredFab()
328 final int toolbarHeight = mToolbar.getHeight(); in testPinnedToolbarAndParallaxImage()
413 (CollapsingToolbarLayout.LayoutParams) mToolbar.getLayoutParams(); in testPinnedToolbarWithMargins()
420 mToolbar.getLocationOnScreen(toolbarOnScreenXY); in testPinnedToolbarWithMargins()
426 final int toolbarHeight = mToolbar.getHeight(); in testPinnedToolbarWithMargins()
439 mToolbar.getLocationOnScreen(toolbarOnScreenXY); in testPinnedToolbarWithMargins()
[all …]
DAppBarLayoutBaseTest.java51 protected Toolbar mToolbar; field in AppBarLayoutBaseTest
101 mToolbar = (Toolbar) mAppBar.findViewById(R.id.toolbar); in configureContent()
107 activity.setSupportActionBar(mToolbar); in configureContent()
DAppBarWithToolbarAndTabsTest.java61 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarAndScrollingTabs()
154 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarAndPinnedTabs()
248 final int toolbarHeight = mToolbar.getHeight(); in testSnappingToolbarAndSnappingTabs()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DQSCustomizer.java68 private Toolbar mToolbar; field in QSCustomizer
79 mToolbar = (Toolbar) findViewById(com.android.internal.R.id.action_bar); in QSCustomizer()
82 mToolbar.setNavigationIcon( in QSCustomizer()
84 mToolbar.setNavigationOnClickListener(new OnClickListener() { in QSCustomizer()
90 mToolbar.setOnMenuItemClickListener(this); in QSCustomizer()
91 mToolbar.getMenu().add(Menu.NONE, MENU_RESET, 0, in QSCustomizer()
93 mToolbar.setTitle(R.string.qs_edit); in QSCustomizer()
153 mToolbar.dismissPopupMenus(); in hide()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DDrawerLayoutActivity.java86 private Toolbar mToolbar; field in DrawerLayoutActivity
113 mToolbar = (Toolbar) findViewById(R.id.toolbar); in onCreate()
114 mToolbar.setTitle(R.string.drawer_title); in onCreate()
115 setSupportActionBar(mToolbar); in onCreate()
152 mToolbar.setBackgroundColor(metalBlueColor); in onCreate()
254 mToolbar.setTitle(Shakespeare.TITLES[position]); in onItemClick()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBarWrapper.java189 private final Toolbar mToolbar; // This is the view. field in FrameworkActionBarWrapper.ToolbarWrapper
194 mToolbar = toolbar; in ToolbarWrapper()
216 return Toolbar_Accessor.getPopupContext(mToolbar); in getPopupContext()
222 return (MenuBuilder) mToolbar.getMenu(); in getMenuBuilder()
228 return Toolbar_Accessor.getActionMenuPresenter(mToolbar); in getActionMenuPresenter()
234 return mToolbar.getWrapper(); in getDecorToolbar()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DActionBarDrawerToggle.java610 final Toolbar mToolbar; field in ActionBarDrawerToggle.ToolbarCompatDelegate
615 mToolbar = toolbar; in ToolbarCompatDelegate()
622 mToolbar.setNavigationIcon(upDrawable); in setActionBarUpIndicator()
629 mToolbar.setNavigationContentDescription(mDefaultContentDescription); in setActionBarDescription()
631 mToolbar.setNavigationContentDescription(contentDescRes); in setActionBarDescription()
642 return mToolbar.getContext(); in getActionBarThemedContext()
/frameworks/base/core/java/com/android/internal/view/
DFloatingActionMode.java306 private final FloatingToolbar mToolbar; field in FloatingActionMode.FloatingToolbarVisibilityHelper
316 mToolbar = Preconditions.checkNotNull(toolbar); in FloatingToolbarVisibilityHelper()
330 mToolbar.dismiss(); in deactivate()
355 mToolbar.hide(); in updateToolbarVisibility()
357 mToolbar.show(); in updateToolbarVisibility()
/frameworks/base/core/java/android/app/
DActionBar.java1461 private final ViewGroup mToolbar; field in ActionBar.FollowOutOfActionBar
1465 mToolbar = toolbar; in FollowOutOfActionBar()
1487 if (mToolbar != null) { in run()
1488 mToolbar.setTouchscreenBlocksFocus(true); in run()