Searched refs:toolbar (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/tools/layoutlib/bridge/src/android/widget/
H A DToolbar_Accessor.java25 public static ActionMenuPresenter getActionMenuPresenter(Toolbar toolbar) { argument
26 return toolbar.getOuterActionMenuPresenter();
29 public static Context getPopupContext(Toolbar toolbar) { argument
30 return toolbar.getPopupContext();
/frameworks/support/design/tests/src/android/support/design/widget/
H A DTabLayoutWithViewPagerActivity.java29 Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
30 setSupportActionBar(toolbar);
H A DAppBarLayoutBaseTest.java101 mToolbar = (Toolbar) mAppBar.findViewById(R.id.toolbar);
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DToolbarActionBarActivity.java34 mToolbar = (Toolbar) findViewById(R.id.toolbar);
H A DBaseKeyboardShortcutsTestCase.java89 final View toolbar = activity.findViewById(R.id.toolbar);
90 assertTrue(toolbar.hasFocus());
H A DDrawerLayoutDoubleActivity.java71 // Find the toolbar in our layout and set it as the support action bar on the activity.
72 // This is required to have the drawer slide "over" the toolbar.
73 mToolbar = (Toolbar) findViewById(R.id.toolbar);
81 // versions) and the toolbar itself. We're using the same color, and android:statusBar
H A DDrawerLayoutActivity.java76 // Find the toolbar in our layout and set it as the support action bar on the activity.
77 // This is required to have the drawer slide "over" the toolbar.
78 mToolbar = (Toolbar) findViewById(R.id.toolbar);
88 // *not* using a constructor that gets a Toolbar since we're setting our toolbar
89 // dynamically at runtime. Furthermore, as the drawer is sliding over the toolbar,
113 // versions) and the toolbar itself. We're using the same color, and android:statusBar
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBarDrawerToggle.java123 // used in toolbar mode when DrawerToggle is disabled
171 * @param toolbar The toolbar to use if you have an independent Toolbar.
179 Toolbar toolbar, @StringRes int openDrawerContentDescRes,
181 this(activity, toolbar, drawerLayout, null, openDrawerContentDescRes,
190 <T extends Drawable & DrawerToggle> ActionBarDrawerToggle(Activity activity, Toolbar toolbar, argument
194 if (toolbar != null) {
195 mActivityImpl = new ToolbarCompatDelegate(toolbar);
196 toolbar.setNavigationOnClickListener(new View.OnClickListener() {
618 ToolbarCompatDelegate(Toolbar toolbar) { argument
178 ActionBarDrawerToggle(Activity activity, DrawerLayout drawerLayout, Toolbar toolbar, @StringRes int openDrawerContentDescRes, @StringRes int closeDrawerContentDescRes) argument
[all...]
H A DAppCompatActivity.java119 * toolbar as if it were a traditional window decor action bar. The toolbar's menu will be
127 * @param toolbar Toolbar to set as the Activity's action bar, or {@code null} to clear it
129 public void setSupportActionBar(@Nullable Toolbar toolbar) { argument
130 getDelegate().setSupportActionBar(toolbar);
H A DAppCompatDelegate.java218 * an {@link ActionBar} object that can be used to control the given toolbar as if it were
219 * a traditional window decor action bar. The toolbar's menu will be populated with the
227 * @param toolbar Toolbar to set as the Activity's action bar, or {@code null} to clear it
229 public abstract void setSupportActionBar(@Nullable Toolbar toolbar); argument
H A DToolbarActionBar.java73 public ToolbarActionBar(Toolbar toolbar, CharSequence title, Window.Callback callback) { argument
74 mDecorToolbar = new ToolbarWidgetWrapper(toolbar, false);
77 toolbar.setOnMenuItemClickListener(mMenuClicker);
333 "Tabs are not supported in toolbar action bars");
339 "Tabs are not supported in toolbar action bars");
345 "Tabs are not supported in toolbar action bars");
351 "Tabs are not supported in toolbar action bars");
357 "Tabs are not supported in toolbar action bars");
363 "Tabs are not supported in toolbar action bars");
369 "Tabs are not supported in toolbar actio
[all...]
H A DAppCompatDelegateImplV7.java190 public void setSupportActionBar(Toolbar toolbar) { argument
212 if (toolbar != null) {
213 final ToolbarActionBar tbab = new ToolbarActionBar(toolbar,
/frameworks/base/core/java/android/app/
H A DActionBar.java45 * A primary toolbar within the activity that may display the activity title, application-level
109 * toolbar action bars. Consider using other
121 * toolbar action bars. Consider using other
132 * toolbar action bars. Consider using other
339 * toolbar action bars. Consider using other
352 * toolbar action bars. Consider using other
364 * toolbar action bars. Consider using other
376 * toolbar action bars. Consider using other
578 * toolbar action bars. Consider using other
594 * toolbar actio
1463 FollowOutOfActionBar(ViewGroup focusRoot, ViewGroup container, ViewGroup toolbar) argument
[all...]
/frameworks/base/tools/preload2/src/com/android/preload/ui/
H A DUI.java65 JToolBar toolbar = new JToolBar(JToolBar.HORIZONTAL);
68 toolbar.addSeparator();
70 toolbar.add(a);
73 getContentPane().add(toolbar, BorderLayout.PAGE_START);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDrawerController.java86 Toolbar toolbar = (Toolbar) activity.findViewById(R.id.roots_toolbar);
97 return new RuntimeDrawerController(layout, drawer, toggle, toolbar);
H A DNavigationView.java57 DocumentsToolbar toolbar,
62 mToolbar = toolbar;
128 if (DEBUG) Log.d(TAG, "New toolbar title is: " + title);
137 if (DEBUG) Log.d(TAG, "Final toolbar title is: " + mToolbar.getTitle());
164 * Class providing toolbar with runtime access to useful activity data.
55 NavigationView( DrawerController drawer, DocumentsToolbar toolbar, Spinner breadcrumb, State state, NavigationView.Environment env) argument
H A DBaseActivity.java133 DocumentsToolbar toolbar = (DocumentsToolbar) findViewById(R.id.toolbar);
134 setActionBar(toolbar);
137 toolbar,
153 mSearchManager.install((DocumentsToolbar) findViewById(R.id.toolbar), fullBarSearch);
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DToolbarWidgetWrapper.java90 public ToolbarWidgetWrapper(Toolbar toolbar, boolean style) { argument
91 this(toolbar, style, R.string.abc_action_bar_up_description,
95 public ToolbarWidgetWrapper(Toolbar toolbar, boolean style, argument
97 mToolbar = toolbar;
98 mTitle = toolbar.getTitle();
99 mSubtitle = toolbar.getSubtitle();
101 mNavIcon = toolbar.getNavigationIcon();
102 final TintTypedArray a = TintTypedArray.obtainStyledAttributes(toolbar.getContext(),
/frameworks/base/core/java/com/android/internal/widget/
H A DToolbarWidgetWrapper.java90 public ToolbarWidgetWrapper(Toolbar toolbar, boolean style) { argument
91 this(toolbar, style, R.string.action_bar_up_description);
94 public ToolbarWidgetWrapper(Toolbar toolbar, boolean style, argument
96 mToolbar = toolbar;
98 mTitle = toolbar.getTitle();
99 mSubtitle = toolbar.getSubtitle();
102 final TypedArray a = toolbar.getContext().obtainStyledAttributes(null,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
H A DSettingsDrawerActivity.java91 Toolbar toolbar = (Toolbar) findViewById(R.id.action_bar);
93 toolbar.setVisibility(View.GONE);
99 setActionBar(toolbar);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DFrameworkActionBarWrapper.java192 @NonNull Toolbar toolbar) {
193 super(context, callback, new ToolbarActionBar(toolbar, "", new WindowCallback()));
194 mToolbar = toolbar;
191 ToolbarWrapper(@onNull BridgeContext context, @NonNull ActionBarCallback callback, @NonNull Toolbar toolbar) argument
/frameworks/base/core/java/com/android/internal/app/
H A DToolbarActionBar.java72 public ToolbarActionBar(Toolbar toolbar, CharSequence title, Window.Callback windowCallback) { argument
73 mDecorToolbar = new ToolbarWidgetWrapper(toolbar, false);
76 toolbar.setOnMenuItemClickListener(mMenuClicker);
327 "Tabs are not supported in toolbar action bars");
333 "Tabs are not supported in toolbar action bars");
339 "Tabs are not supported in toolbar action bars");
345 "Tabs are not supported in toolbar action bars");
351 "Tabs are not supported in toolbar action bars");
357 "Tabs are not supported in toolbar action bars");
363 "Tabs are not supported in toolbar actio
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DFloatingActionMode.java139 invalidateContentRect(); // Will re-layout and show the toolbar if necessary.
303 * A helper for showing/hiding the floating toolbar depending on certain states.
316 public FloatingToolbarVisibilityHelper(FloatingToolbar toolbar) { argument
317 mToolbar = Preconditions.checkNotNull(toolbar);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DDirectoryFragment.java573 final Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);
574 toolbar.setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_AUTO);
576 // This toolbar is not present in the fixed_layout
594 final Toolbar toolbar = (Toolbar) getActivity().findViewById(R.id.toolbar);
595 toolbar.setImportantForAccessibility(
598 // This toolbar is not present in the fixed_layout
/frameworks/support/design/src/android/support/design/widget/
H A DCollapsingToolbarLayout.java265 // If we don't have a toolbar, the scrim will be not be drawn in drawChild() below.
294 // drawChild() call, and draw our scrim first when drawing the toolbar
333 Toolbar toolbar = null;
337 toolbar = (Toolbar) child;
341 mToolbar = toolbar;

Completed in 440 milliseconds

12