SearchBar.ScrollingViewBehavior

public static class SearchBar.ScrollingViewBehavior
extends AppBarLayout.ScrollingViewBehavior

java.lang.Object
   ↳ androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior<V extends android.view.View>
     ↳ com.google.android.material.appbar.AppBarLayout.ScrollingViewBehavior
       ↳ com.google.android.material.search.SearchBar.ScrollingViewBehavior


Behavior that sets up the scroll-away mode for an SearchBar.

Summary

Public constructors

ScrollingViewBehavior()
ScrollingViewBehavior(Context context, AttributeSet attrs)

Public methods

boolean onDependentViewChanged(CoordinatorLayout parent, View child, View dependency)

Protected methods

boolean shouldHeaderOverlapScrollingChild()

Inherited methods

Public constructors

ScrollingViewBehavior

public ScrollingViewBehavior ()

ScrollingViewBehavior

public ScrollingViewBehavior (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

Public methods

onDependentViewChanged

public boolean onDependentViewChanged (CoordinatorLayout parent, 
                View child, 
                View dependency)

Parameters
parent CoordinatorLayout

child View

dependency View

Returns
boolean

Protected methods

shouldHeaderOverlapScrollingChild

protected boolean shouldHeaderOverlapScrollingChild ()

Returns
boolean