public class ToolbarWidgetWrapper
extends java.lang.Object
implements android.support.v7.widget.DecorToolbar
Constructor and Description |
---|
ToolbarWidgetWrapper(Toolbar toolbar,
boolean style) |
ToolbarWidgetWrapper(Toolbar toolbar,
boolean style,
int defaultNavigationContentDescription,
int defaultNavigationIcon) |
Modifier and Type | Method and Description |
---|---|
void |
animateToVisibility(int visibility) |
boolean |
canShowOverflowMenu() |
void |
collapseActionView() |
void |
dismissPopupMenus() |
android.content.Context |
getContext() |
android.view.View |
getCustomView() |
int |
getDisplayOptions() |
int |
getDropdownItemCount() |
int |
getDropdownSelectedPosition() |
int |
getHeight() |
android.view.Menu |
getMenu() |
int |
getNavigationMode() |
java.lang.CharSequence |
getSubtitle() |
java.lang.CharSequence |
getTitle() |
android.view.ViewGroup |
getViewGroup() |
int |
getVisibility() |
boolean |
hasEmbeddedTabs() |
boolean |
hasExpandedActionView() |
boolean |
hasIcon() |
boolean |
hasLogo() |
boolean |
hideOverflowMenu() |
void |
initIndeterminateProgress() |
void |
initProgress() |
boolean |
isOverflowMenuShowing() |
boolean |
isOverflowMenuShowPending() |
boolean |
isTitleTruncated() |
void |
restoreHierarchyState(android.util.SparseArray<android.os.Parcelable> toolbarStates) |
void |
saveHierarchyState(android.util.SparseArray<android.os.Parcelable> toolbarStates) |
void |
setBackgroundDrawable(android.graphics.drawable.Drawable d) |
void |
setCollapsible(boolean collapsible) |
void |
setCustomView(android.view.View view) |
void |
setDefaultNavigationContentDescription(int defaultNavigationContentDescription) |
void |
setDefaultNavigationIcon(android.graphics.drawable.Drawable defaultNavigationIcon) |
void |
setDisplayOptions(int newOpts) |
void |
setDropdownParams(android.widget.SpinnerAdapter adapter,
android.widget.AdapterView.OnItemSelectedListener listener) |
void |
setDropdownSelectedPosition(int position) |
void |
setEmbeddedTabView(android.support.v7.widget.ScrollingTabContainerView tabView) |
void |
setHomeButtonEnabled(boolean enable) |
void |
setIcon(android.graphics.drawable.Drawable d) |
void |
setIcon(int resId) |
void |
setLogo(android.graphics.drawable.Drawable d) |
void |
setLogo(int resId) |
void |
setMenu(android.view.Menu menu,
android.support.v7.view.menu.MenuPresenter.Callback cb) |
void |
setMenuCallbacks(android.support.v7.view.menu.MenuPresenter.Callback actionMenuPresenterCallback,
android.support.v7.view.menu.MenuBuilder.Callback menuBuilderCallback) |
void |
setMenuPrepared() |
void |
setNavigationContentDescription(java.lang.CharSequence description) |
void |
setNavigationContentDescription(int resId) |
void |
setNavigationIcon(android.graphics.drawable.Drawable icon) |
void |
setNavigationIcon(int resId) |
void |
setNavigationMode(int mode) |
void |
setSubtitle(java.lang.CharSequence subtitle) |
void |
setTitle(java.lang.CharSequence title) |
android.support.v4.view.ViewPropertyAnimatorCompat |
setupAnimatorToVisibility(int visibility,
long duration) |
void |
setVisibility(int visible) |
void |
setWindowCallback(android.view.Window.Callback cb) |
void |
setWindowTitle(java.lang.CharSequence title) |
boolean |
showOverflowMenu() |
public ToolbarWidgetWrapper(Toolbar toolbar, boolean style)
public ToolbarWidgetWrapper(Toolbar toolbar, boolean style, int defaultNavigationContentDescription, int defaultNavigationIcon)
public void setDefaultNavigationContentDescription(int defaultNavigationContentDescription)
setDefaultNavigationContentDescription
in interface android.support.v7.widget.DecorToolbar
public android.view.ViewGroup getViewGroup()
getViewGroup
in interface android.support.v7.widget.DecorToolbar
public android.content.Context getContext()
getContext
in interface android.support.v7.widget.DecorToolbar
public boolean hasExpandedActionView()
hasExpandedActionView
in interface android.support.v7.widget.DecorToolbar
public void collapseActionView()
collapseActionView
in interface android.support.v7.widget.DecorToolbar
public void setWindowCallback(android.view.Window.Callback cb)
setWindowCallback
in interface android.support.v7.widget.DecorToolbar
public void setWindowTitle(java.lang.CharSequence title)
setWindowTitle
in interface android.support.v7.widget.DecorToolbar
public java.lang.CharSequence getTitle()
getTitle
in interface android.support.v7.widget.DecorToolbar
public void setTitle(java.lang.CharSequence title)
setTitle
in interface android.support.v7.widget.DecorToolbar
public java.lang.CharSequence getSubtitle()
getSubtitle
in interface android.support.v7.widget.DecorToolbar
public void setSubtitle(java.lang.CharSequence subtitle)
setSubtitle
in interface android.support.v7.widget.DecorToolbar
public void initProgress()
initProgress
in interface android.support.v7.widget.DecorToolbar
public void initIndeterminateProgress()
initIndeterminateProgress
in interface android.support.v7.widget.DecorToolbar
public boolean hasIcon()
hasIcon
in interface android.support.v7.widget.DecorToolbar
public boolean hasLogo()
hasLogo
in interface android.support.v7.widget.DecorToolbar
public void setIcon(int resId)
setIcon
in interface android.support.v7.widget.DecorToolbar
public void setIcon(android.graphics.drawable.Drawable d)
setIcon
in interface android.support.v7.widget.DecorToolbar
public void setLogo(int resId)
setLogo
in interface android.support.v7.widget.DecorToolbar
public void setLogo(android.graphics.drawable.Drawable d)
setLogo
in interface android.support.v7.widget.DecorToolbar
public boolean canShowOverflowMenu()
canShowOverflowMenu
in interface android.support.v7.widget.DecorToolbar
public boolean isOverflowMenuShowing()
isOverflowMenuShowing
in interface android.support.v7.widget.DecorToolbar
public boolean isOverflowMenuShowPending()
isOverflowMenuShowPending
in interface android.support.v7.widget.DecorToolbar
public boolean showOverflowMenu()
showOverflowMenu
in interface android.support.v7.widget.DecorToolbar
public boolean hideOverflowMenu()
hideOverflowMenu
in interface android.support.v7.widget.DecorToolbar
public void setMenuPrepared()
setMenuPrepared
in interface android.support.v7.widget.DecorToolbar
public void setMenu(android.view.Menu menu, android.support.v7.view.menu.MenuPresenter.Callback cb)
setMenu
in interface android.support.v7.widget.DecorToolbar
public void dismissPopupMenus()
dismissPopupMenus
in interface android.support.v7.widget.DecorToolbar
public int getDisplayOptions()
getDisplayOptions
in interface android.support.v7.widget.DecorToolbar
public void setDisplayOptions(int newOpts)
setDisplayOptions
in interface android.support.v7.widget.DecorToolbar
public void setEmbeddedTabView(android.support.v7.widget.ScrollingTabContainerView tabView)
setEmbeddedTabView
in interface android.support.v7.widget.DecorToolbar
public boolean hasEmbeddedTabs()
hasEmbeddedTabs
in interface android.support.v7.widget.DecorToolbar
public boolean isTitleTruncated()
isTitleTruncated
in interface android.support.v7.widget.DecorToolbar
public void setCollapsible(boolean collapsible)
setCollapsible
in interface android.support.v7.widget.DecorToolbar
public void setHomeButtonEnabled(boolean enable)
setHomeButtonEnabled
in interface android.support.v7.widget.DecorToolbar
public int getNavigationMode()
getNavigationMode
in interface android.support.v7.widget.DecorToolbar
public void setNavigationMode(int mode)
setNavigationMode
in interface android.support.v7.widget.DecorToolbar
public void setDropdownParams(android.widget.SpinnerAdapter adapter, android.widget.AdapterView.OnItemSelectedListener listener)
setDropdownParams
in interface android.support.v7.widget.DecorToolbar
public void setDropdownSelectedPosition(int position)
setDropdownSelectedPosition
in interface android.support.v7.widget.DecorToolbar
public int getDropdownSelectedPosition()
getDropdownSelectedPosition
in interface android.support.v7.widget.DecorToolbar
public int getDropdownItemCount()
getDropdownItemCount
in interface android.support.v7.widget.DecorToolbar
public void setCustomView(android.view.View view)
setCustomView
in interface android.support.v7.widget.DecorToolbar
public android.view.View getCustomView()
getCustomView
in interface android.support.v7.widget.DecorToolbar
public void animateToVisibility(int visibility)
animateToVisibility
in interface android.support.v7.widget.DecorToolbar
public android.support.v4.view.ViewPropertyAnimatorCompat setupAnimatorToVisibility(int visibility, long duration)
setupAnimatorToVisibility
in interface android.support.v7.widget.DecorToolbar
public void setNavigationIcon(android.graphics.drawable.Drawable icon)
setNavigationIcon
in interface android.support.v7.widget.DecorToolbar
public void setNavigationIcon(int resId)
setNavigationIcon
in interface android.support.v7.widget.DecorToolbar
public void setDefaultNavigationIcon(android.graphics.drawable.Drawable defaultNavigationIcon)
setDefaultNavigationIcon
in interface android.support.v7.widget.DecorToolbar
public void setNavigationContentDescription(java.lang.CharSequence description)
setNavigationContentDescription
in interface android.support.v7.widget.DecorToolbar
public void setNavigationContentDescription(int resId)
setNavigationContentDescription
in interface android.support.v7.widget.DecorToolbar
public void saveHierarchyState(android.util.SparseArray<android.os.Parcelable> toolbarStates)
saveHierarchyState
in interface android.support.v7.widget.DecorToolbar
public void restoreHierarchyState(android.util.SparseArray<android.os.Parcelable> toolbarStates)
restoreHierarchyState
in interface android.support.v7.widget.DecorToolbar
public void setBackgroundDrawable(android.graphics.drawable.Drawable d)
setBackgroundDrawable
in interface android.support.v7.widget.DecorToolbar
public int getHeight()
getHeight
in interface android.support.v7.widget.DecorToolbar
public void setVisibility(int visible)
setVisibility
in interface android.support.v7.widget.DecorToolbar
public int getVisibility()
getVisibility
in interface android.support.v7.widget.DecorToolbar
public void setMenuCallbacks(android.support.v7.view.menu.MenuPresenter.Callback actionMenuPresenterCallback, android.support.v7.view.menu.MenuBuilder.Callback menuBuilderCallback)
setMenuCallbacks
in interface android.support.v7.widget.DecorToolbar
public android.view.Menu getMenu()
getMenu
in interface android.support.v7.widget.DecorToolbar