Example usage for Java android.widget Toolbar fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addView(View child) Adds a child view. |
T | findViewById(@IdRes int id) Finds the first descendant view with the given ID, the view itself if the ID matches #getId() , or null if the ID is invalid (< 0) or there is no matching view in the hierarchy. |
View | getChildAt(int index) Returns the view at the specified position in the group. |
int | getChildCount() Returns the number of children in the group. |
Context | getContext() Returns the context the view is running in, through which it can access the current theme, resources, etc. |
Drawable | getNavigationIcon() Return the current drawable used as the navigation icon. |
CharSequence | getSubtitle() Return the subtitle of this toolbar. |
CharSequence | getTitle() Returns the title of this toolbar. |
void | setNavigationIcon(@DrawableRes int resId) Set the icon to use for the toolbar's navigation button. |
void | setNavigationIcon(@Nullable Drawable icon) Set the icon to use for the toolbar's navigation button. |
void | setNavigationOnClickListener(OnClickListener listener) Set a listener to respond to navigation events. |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |