Home
last modified time | relevance | path

Searched refs:toolbar (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DKeyEventsTestCaseWithToolbar.java46 Toolbar toolbar = mActivityTestRule.getActivity().getToolbar(); in testMenuKeyOpensToolbarMenu() local
47 assertFalse(toolbar.isOverflowMenuShowing()); in testMenuKeyOpensToolbarMenu()
51 assertTrue(toolbar.isOverflowMenuShowing()); in testMenuKeyOpensToolbarMenu()
55 assertFalse(toolbar.isOverflowMenuShowing()); in testMenuKeyOpensToolbarMenu()
64 Toolbar toolbar = mActivityTestRule.getActivity().getToolbar(); in testOpenMenuOpensToolbarMenu() local
65 assertFalse(toolbar.isOverflowMenuShowing()); in testOpenMenuOpensToolbarMenu()
74 assertTrue(toolbar.isOverflowMenuShowing()); in testOpenMenuOpensToolbarMenu()
83 assertFalse(toolbar.isOverflowMenuShowing()); in testOpenMenuOpensToolbarMenu()
DKeyboardShortcutsTestCaseWithToolbar.java66 … final View toolbar = activity.findViewById(android.support.v7.appcompat.test.R.id.toolbar); in testAccessActionBar()
67 assertTrue(toolbar.hasFocus()); in testAccessActionBar()
90 final Toolbar toolbar = in testKeyShortcuts() local
91 (Toolbar) activity.findViewById(android.support.v7.appcompat.test.R.id.toolbar); in testKeyShortcuts()
96 toolbar.inflateMenu(android.support.v7.appcompat.test.R.menu.sample_actions); in testKeyShortcuts()
101 toolbar.getMenu().findItem(android.support.v7.appcompat.test.R.id.action_alpha_shortcut) in testKeyShortcuts()
/frameworks/base/tools/layoutlib/bridge/src/android/widget/
DToolbar_Accessor.java25 public static ActionMenuPresenter getActionMenuPresenter(Toolbar toolbar) { in getActionMenuPresenter() argument
26 return toolbar.getOuterActionMenuPresenter(); in getActionMenuPresenter()
29 public static Context getPopupContext(Toolbar toolbar) { in getPopupContext() argument
30 return toolbar.getPopupContext(); in getPopupContext()
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DNavigationViewUsage.java49 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
50 setSupportActionBar(toolbar); in onCreate()
53 toolbar.setNavigationIcon(R.drawable.ic_action_navigation_menu); in onCreate()
54 toolbar.setNavigationOnClickListener(new View.OnClickListener() { in onCreate()
DFloatingActionButtonUsage.java36 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
37 setSupportActionBar(toolbar); in onCreate()
DTabLayoutLayoutItemsUsage.java36 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
37 setSupportActionBar(toolbar); in onCreate()
DTabLayoutCustomItemsUsage.java36 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
37 setSupportActionBar(toolbar); in onCreate()
DAppBarLayoutUsageBase.java48 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
49 setSupportActionBar(toolbar); in onCreate()
DTabLayoutUsage.java56 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
57 setSupportActionBar(toolbar); in onCreate()
DTabLayoutPreselectedUsage.java53 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
54 setSupportActionBar(toolbar); in onCreate()
/frameworks/support/design/tests/src/android/support/design/widget/
DAppBarLayoutCollapsePinTestActivity.java31 Toolbar toolbar = findViewById(R.id.toolbar); in onContentViewSet() local
32 setSupportActionBar(toolbar); in onContentViewSet()
DTabLayoutWithViewPagerActivity.java29 Toolbar toolbar = findViewById(R.id.toolbar); in onContentViewSet() local
30 setSupportActionBar(toolbar); in onContentViewSet()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DNavigationDrawerActivity.java34 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
35 setSupportActionBar(toolbar); in onCreate()
38 this, drawer, toolbar, R.string.navigation_drawer_open, in onCreate()
DClippedListActivity.java38 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
39 setSupportActionBar(toolbar); in onCreate()
42 this, drawer, toolbar, R.string.navigation_drawer_open, in onCreate()
/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/
DTransitionUsageBase.java40 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
41 setSupportActionBar(toolbar); in onCreate()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DActionBarDrawerToggle.java182 Toolbar toolbar, @StringRes int openDrawerContentDescRes, in ActionBarDrawerToggle() argument
184 this(activity, toolbar, drawerLayout, null, openDrawerContentDescRes, in ActionBarDrawerToggle()
193 ActionBarDrawerToggle(Activity activity, Toolbar toolbar, DrawerLayout drawerLayout, in ActionBarDrawerToggle() argument
196 if (toolbar != null) { in ActionBarDrawerToggle()
197 mActivityImpl = new ToolbarCompatDelegate(toolbar); in ActionBarDrawerToggle()
198 toolbar.setNavigationOnClickListener(new View.OnClickListener() { in ActionBarDrawerToggle()
659 ToolbarCompatDelegate(Toolbar toolbar) { in ToolbarCompatDelegate() argument
660 mToolbar = toolbar; in ToolbarCompatDelegate()
661 mDefaultUpIndicator = toolbar.getNavigationIcon(); in ToolbarCompatDelegate()
662 mDefaultContentDescription = toolbar.getNavigationContentDescription(); in ToolbarCompatDelegate()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
DMenuItemIconTinting.java39 Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); in onCreate() local
40 setSupportActionBar(toolbar); in onCreate()
DToolbarUsage.java41 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
42 setSupportActionBar(toolbar); in onCreate()
DToolbarActionMode.java40 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
41 setSupportActionBar(toolbar); in onCreate()
DToolbarDisplayOptions.java45 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
46 setSupportActionBar(toolbar); in onCreate()
DToolbarFragmentPagerMenu.java52 Toolbar toolbar = findViewById(R.id.toolbar); in onCreate() local
53 setSupportActionBar(toolbar); in onCreate()
DAppCompatPreferenceActivity.java59 public void setSupportActionBar(@Nullable Toolbar toolbar) { in setSupportActionBar() argument
60 getDelegate().setSupportActionBar(toolbar); in setSupportActionBar()
/frameworks/base/tools/preload2/src/com/android/preload/ui/
DSwingUI.java72 JToolBar toolbar = new JToolBar(JToolBar.HORIZONTAL); in prepare() local
75 toolbar.addSeparator(); in prepare()
77 toolbar.add(a); in prepare()
80 getContentPane().add(toolbar, BorderLayout.PAGE_START); in prepare()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DToolbarWidgetWrapper.java94 public ToolbarWidgetWrapper(Toolbar toolbar, boolean style) { in ToolbarWidgetWrapper() argument
95 this(toolbar, style, R.string.abc_action_bar_up_description, in ToolbarWidgetWrapper()
99 public ToolbarWidgetWrapper(Toolbar toolbar, boolean style, in ToolbarWidgetWrapper() argument
101 mToolbar = toolbar; in ToolbarWidgetWrapper()
102 mTitle = toolbar.getTitle(); in ToolbarWidgetWrapper()
103 mSubtitle = toolbar.getSubtitle(); in ToolbarWidgetWrapper()
105 mNavIcon = toolbar.getNavigationIcon(); in ToolbarWidgetWrapper()
106 final TintTypedArray a = TintTypedArray.obtainStyledAttributes(toolbar.getContext(), in ToolbarWidgetWrapper()
/frameworks/base/core/java/com/android/internal/widget/
DToolbarWidgetWrapper.java90 public ToolbarWidgetWrapper(Toolbar toolbar, boolean style) { in ToolbarWidgetWrapper() argument
91 this(toolbar, style, R.string.action_bar_up_description); in ToolbarWidgetWrapper()
94 public ToolbarWidgetWrapper(Toolbar toolbar, boolean style, in ToolbarWidgetWrapper() argument
96 mToolbar = toolbar; in ToolbarWidgetWrapper()
98 mTitle = toolbar.getTitle(); in ToolbarWidgetWrapper()
99 mSubtitle = toolbar.getSubtitle(); in ToolbarWidgetWrapper()
102 final TypedArray a = toolbar.getContext().obtainStyledAttributes(null, in ToolbarWidgetWrapper()

12