/frameworks/base/core/java/com/android/internal/widget/ |
D | ToolbarWidgetWrapper.java | 66 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/ |
D | ToolbarWidgetWrapper.java | 69 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/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | AppCompatMenuItemIconTintingTestActivity.java | 26 private Toolbar mToolbar; field in AppCompatMenuItemIconTintingTestActivity 35 mToolbar = findViewById(R.id.toolbar); in onContentViewSet() 36 setSupportActionBar(mToolbar); in onContentViewSet() 48 return mToolbar.getMenu(); in getToolbarMenu()
|
D | DrawerLayoutDoubleActivity.java | 41 private Toolbar mToolbar; field in DrawerLayoutDoubleActivity 70 mToolbar = findViewById(R.id.toolbar); in onContentViewSet() 71 mToolbar.setTitle(R.string.drawer_title); in onContentViewSet() 72 setSupportActionBar(mToolbar); in onContentViewSet() 82 mToolbar.setBackgroundColor(metalBlueColor); in onContentViewSet() 112 mToolbar.setTitle(Shakespeare.TITLES[position]); in onItemClick()
|
D | ToolbarAppCompatActivity.java | 27 private Toolbar mToolbar; field in ToolbarAppCompatActivity 40 mToolbar = findViewById(R.id.toolbar); in onContentViewSet() 41 setSupportActionBar(mToolbar); in onContentViewSet() 45 return mToolbar; in getToolbar()
|
D | DrawerLayoutActivity.java | 50 private Toolbar mToolbar; field in DrawerLayoutActivity 78 mToolbar = 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/ |
D | CollapsingToolbarLayout.java | 110 private Toolbar mToolbar; field in CollapsingToolbarLayout 290 if (mToolbar == null && mContentScrim != null && mScrimAlpha > 0) { in draw() 340 mToolbar = null; in ensureToolbar() 345 mToolbar = findViewById(mToolbarId); in ensureToolbar() 346 if (mToolbar != null) { in ensureToolbar() 347 mToolbarDirectChild = findDirectChild(mToolbar); in ensureToolbar() 351 if (mToolbar == null) { in ensureToolbar() 362 mToolbar = toolbar; in ensureToolbar() 371 ? child == mToolbar in isToolbarChild() 397 if (mCollapsingTitleEnabled && mToolbar != null) { in updateDummyView() [all …]
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | AppBarWithCollapsingToolbarTest.java | 40 (CollapsingToolbarLayout.LayoutParams) mToolbar.getLayoutParams(); in testPinnedToolbar() 53 final int toolbarHeight = mToolbar.getHeight(); in testPinnedToolbar() 145 (CollapsingToolbarLayout.LayoutParams) mToolbar.getLayoutParams(); in testScrollingToolbar() 160 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbar() 265 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarEnterAlways() 360 (CollapsingToolbarLayout.LayoutParams) mToolbar.getLayoutParams(); in testPinnedToolbarAndAnchoredFab() 450 final int toolbarHeight = mToolbar.getHeight(); in testPinnedToolbarAndParallaxImage() 529 (CollapsingToolbarLayout.LayoutParams) mToolbar.getLayoutParams(); in testPinnedToolbarWithMargins() 536 mToolbar.getLocationOnScreen(toolbarOnScreenXY); in testPinnedToolbarWithMargins() 542 final int toolbarHeight = mToolbar.getHeight(); in testPinnedToolbarWithMargins() [all …]
|
D | AppBarLayoutBaseTest.java | 56 protected Toolbar mToolbar; field in AppBarLayoutBaseTest 80 mToolbar = (Toolbar) mAppBar.findViewById(R.id.toolbar); in configureContent() 86 activity.setSupportActionBar(mToolbar); in configureContent()
|
D | AppBarWithToolbarAndTabsTest.java | 65 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarAndScrollingTabs() 158 final int toolbarHeight = mToolbar.getHeight(); in testScrollingToolbarAndPinnedTabs() 254 final int toolbarHeight = mToolbar.getHeight(); in testSnappingToolbarAndSnappingTabs()
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
D | DrawerLayoutActivity.java | 86 private Toolbar mToolbar; field in DrawerLayoutActivity 113 mToolbar = 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/packages/SystemUI/src/com/android/systemui/qs/customize/ |
D | QSCustomizer.java | 70 private Toolbar mToolbar; field in QSCustomizer 85 mToolbar = findViewById(com.android.internal.R.id.action_bar); in QSCustomizer() 88 mToolbar.setNavigationIcon( in QSCustomizer() 90 mToolbar.setNavigationOnClickListener(new OnClickListener() { in QSCustomizer() 96 mToolbar.setOnMenuItemClickListener(this); in QSCustomizer() 97 mToolbar.getMenu().add(Menu.NONE, MENU_RESET, 0, in QSCustomizer() 99 mToolbar.setTitle(R.string.qs_edit); in QSCustomizer() 170 mToolbar.dismissPopupMenus(); in hide()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | FrameworkActionBarWrapper.java | 189 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/ |
D | ActionBarDrawerToggle.java | 655 final Toolbar mToolbar; field in ActionBarDrawerToggle.ToolbarCompatDelegate 660 mToolbar = toolbar; in ToolbarCompatDelegate() 667 mToolbar.setNavigationIcon(upDrawable); in setActionBarUpIndicator() 674 mToolbar.setNavigationContentDescription(mDefaultContentDescription); in setActionBarDescription() 676 mToolbar.setNavigationContentDescription(contentDescRes); in setActionBarDescription() 687 return mToolbar.getContext(); in getActionBarThemedContext()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | FloatingActionMode.java | 298 private final FloatingToolbar mToolbar; field in FloatingActionMode.FloatingToolbarVisibilityHelper 308 mToolbar = Preconditions.checkNotNull(toolbar); in FloatingToolbarVisibilityHelper() 322 mToolbar.dismiss(); in deactivate() 347 mToolbar.hide(); in updateToolbarVisibility() 349 mToolbar.show(); in updateToolbarVisibility()
|