ActionBar.HideOnContentScrollEnabled Property

Definition

Return whether the action bar is configured to scroll out of sight along with a View#setNestedScrollingEnabled(boolean) nested scrolling child. -or- Enable hiding the action bar on content scroll.

public virtual bool HideOnContentScrollEnabled { [Android.Runtime.Register("isHideOnContentScrollEnabled", "()Z", "GetIsHideOnContentScrollEnabledHandler")] get; [Android.Runtime.Register("setHideOnContentScrollEnabled", "(Z)V", "GetSetHideOnContentScrollEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isHideOnContentScrollEnabled", "()Z", "GetIsHideOnContentScrollEnabledHandler")>]
[<set: Android.Runtime.Register("setHideOnContentScrollEnabled", "(Z)V", "GetSetHideOnContentScrollEnabled_ZHandler")>]
member this.HideOnContentScrollEnabled : bool with get, set

Property Value

true if hide-on-content-scroll is enabled

Attributes

Remarks

Property getter documentation:

Return whether the action bar is configured to scroll out of sight along with a View#setNestedScrollingEnabled(boolean) nested scrolling child.

Java documentation for android.app.ActionBar.isHideOnContentScrollEnabled().

Property setter documentation:

Enable hiding the action bar on content scroll.

If enabled, the action bar will scroll out of sight along with a View#setNestedScrollingEnabled(boolean) nested scrolling child view's content. The action bar must be in Window#FEATURE_ACTION_BAR_OVERLAY overlay mode to enable hiding on content scroll.

When partially scrolled off screen the action bar is considered #hide() hidden. A call to #show() show will cause it to return to full view.

Java documentation for android.app.ActionBar.setHideOnContentScrollEnabled(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also