Stay organized with collections
Save and categorize content based on your preferences.
SearchView.Behavior
public
static
class
SearchView.Behavior
extends Behavior<SearchView>
Behavior that sets up an SearchView
with an SearchBar
.
Summary
Inherited methods |
From class
androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
boolean
|
blocksInteractionBelow(CoordinatorLayout arg0, V arg1)
|
boolean
|
getInsetDodgeRect(CoordinatorLayout arg0, V arg1, Rect arg2)
|
int
|
getScrimColor(CoordinatorLayout arg0, V arg1)
|
float
|
getScrimOpacity(CoordinatorLayout arg0, V arg1)
|
static
Object
|
getTag(View arg0)
|
boolean
|
layoutDependsOn(CoordinatorLayout arg0, V arg1, View arg2)
|
WindowInsetsCompat
|
onApplyWindowInsets(CoordinatorLayout arg0, V arg1, WindowInsetsCompat arg2)
|
void
|
onAttachedToLayoutParams(CoordinatorLayout.LayoutParams arg0)
|
boolean
|
onDependentViewChanged(CoordinatorLayout arg0, V arg1, View arg2)
|
void
|
onDependentViewRemoved(CoordinatorLayout arg0, V arg1, View arg2)
|
void
|
onDetachedFromLayoutParams()
|
boolean
|
onInterceptTouchEvent(CoordinatorLayout arg0, V arg1, MotionEvent arg2)
|
boolean
|
onLayoutChild(CoordinatorLayout arg0, V arg1, int arg2)
|
boolean
|
onMeasureChild(CoordinatorLayout arg0, V arg1, int arg2, int arg3, int arg4, int arg5)
|
boolean
|
onNestedFling(CoordinatorLayout arg0, V arg1, View arg2, float arg3, float arg4, boolean arg5)
|
boolean
|
onNestedPreFling(CoordinatorLayout arg0, V arg1, View arg2, float arg3, float arg4)
|
void
|
onNestedPreScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int[] arg5, int arg6)
|
void
|
onNestedPreScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int[] arg5)
|
void
|
onNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int arg5, int arg6, int arg7)
|
void
|
onNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int[] arg8)
|
void
|
onNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int arg5, int arg6)
|
void
|
onNestedScrollAccepted(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4, int arg5)
|
void
|
onNestedScrollAccepted(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4)
|
boolean
|
onRequestChildRectangleOnScreen(CoordinatorLayout arg0, V arg1, Rect arg2, boolean arg3)
|
void
|
onRestoreInstanceState(CoordinatorLayout arg0, V arg1, Parcelable arg2)
|
Parcelable
|
onSaveInstanceState(CoordinatorLayout arg0, V arg1)
|
boolean
|
onStartNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4, int arg5)
|
boolean
|
onStartNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4)
|
void
|
onStopNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3)
|
void
|
onStopNestedScroll(CoordinatorLayout arg0, V arg1, View arg2)
|
boolean
|
onTouchEvent(CoordinatorLayout arg0, V arg1, MotionEvent arg2)
|
static
void
|
setTag(View arg0, Object arg1)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
Behavior
public Behavior ()
Behavior
public Behavior (Context context,
AttributeSet attrs)
Parameters |
context |
Context |
attrs |
AttributeSet |
Public methods
public boolean onDependentViewChanged (CoordinatorLayout parent,
SearchView child,
View dependency)
Parameters |
parent |
CoordinatorLayout |
child |
SearchView |
dependency |
View |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SearchView.Behavior\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nSearchView.Behavior\n===================\n\n\n`\npublic\nstatic\n\n\nclass\nSearchView.Behavior\n`\n\n\n`\n\n\n`\n\n`\n\nextends Behavior\u003c`[SearchView](/reference/com/google/android/material/search/SearchView)`\u003e\n\n\n`\n\n`\n\n\n`\n\n|---|---|--------------------------------------------------------|\n| java.lang.Object |||\n| ↳ | androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior\\\u003c[com.google.android.material.search.SearchView](/reference/com/google/android/material/search/SearchView)\\\u003e ||\n| | ↳ | com.google.android.material.search.SearchView.Behavior |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nBehavior that sets up an [SearchView](/reference/com/google/android/material/search/SearchView) with an [SearchBar](/reference/com/google/android/material/search/SearchBar).\n\nSummary\n-------\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[Behavior](/reference/com/google/android/material/search/SearchView.Behavior#Behavior())`() ` |\n| ` `[Behavior](/reference/com/google/android/material/search/SearchView.Behavior#Behavior(android.content.Context,%20android.util.AttributeSet))`(Context context, AttributeSet attrs) ` |\n\n| ### Public methods ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` boolean` | ` `[onDependentViewChanged](/reference/com/google/android/material/search/SearchView.Behavior#onDependentViewChanged(androidx.coordinatorlayout.widget.CoordinatorLayout,%20com.google.android.material.search.SearchView,%20android.view.View))`(CoordinatorLayout parent, `[SearchView](/reference/com/google/android/material/search/SearchView)` child, View dependency) ` |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior ` |-----------------------|-----------------------------------------------------------------------------------------------------------------------------| | ` boolean` | ` blocksInteractionBelow(CoordinatorLayout arg0, V arg1) ` | | ` boolean` | ` getInsetDodgeRect(CoordinatorLayout arg0, V arg1, Rect arg2) ` | | ` int` | ` getScrimColor(CoordinatorLayout arg0, V arg1) ` | | ` float` | ` getScrimOpacity(CoordinatorLayout arg0, V arg1) ` | | ` static Object` | ` getTag(View arg0) ` | | ` boolean` | ` layoutDependsOn(CoordinatorLayout arg0, V arg1, View arg2) ` | | ` WindowInsetsCompat` | ` onApplyWindowInsets(CoordinatorLayout arg0, V arg1, WindowInsetsCompat arg2) ` | | ` void` | ` onAttachedToLayoutParams(CoordinatorLayout.LayoutParams arg0) ` | | ` boolean` | ` onDependentViewChanged(CoordinatorLayout arg0, V arg1, View arg2) ` | | ` void` | ` onDependentViewRemoved(CoordinatorLayout arg0, V arg1, View arg2) ` | | ` void` | ` onDetachedFromLayoutParams() ` | | ` boolean` | ` onInterceptTouchEvent(CoordinatorLayout arg0, V arg1, MotionEvent arg2) ` | | ` boolean` | ` onLayoutChild(CoordinatorLayout arg0, V arg1, int arg2) ` | | ` boolean` | ` onMeasureChild(CoordinatorLayout arg0, V arg1, int arg2, int arg3, int arg4, int arg5) ` | | ` boolean` | ` onNestedFling(CoordinatorLayout arg0, V arg1, View arg2, float arg3, float arg4, boolean arg5) ` | | ` boolean` | ` onNestedPreFling(CoordinatorLayout arg0, V arg1, View arg2, float arg3, float arg4) ` | | ` void` | ` onNestedPreScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int[] arg5, int arg6) ` | | ` void` | ` onNestedPreScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int[] arg5) ` | | ` void` | ` onNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int arg5, int arg6, int arg7) ` | | ` void` | ` onNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int[] arg8) ` | | ` void` | ` onNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3, int arg4, int arg5, int arg6) ` | | ` void` | ` onNestedScrollAccepted(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4, int arg5) ` | | ` void` | ` onNestedScrollAccepted(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4) ` | | ` boolean` | ` onRequestChildRectangleOnScreen(CoordinatorLayout arg0, V arg1, Rect arg2, boolean arg3) ` | | ` void` | ` onRestoreInstanceState(CoordinatorLayout arg0, V arg1, Parcelable arg2) ` | | ` Parcelable` | ` onSaveInstanceState(CoordinatorLayout arg0, V arg1) ` | | ` boolean` | ` onStartNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4, int arg5) ` | | ` boolean` | ` onStartNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, View arg3, int arg4) ` | | ` void` | ` onStopNestedScroll(CoordinatorLayout arg0, V arg1, View arg2, int arg3) ` | | ` void` | ` onStopNestedScroll(CoordinatorLayout arg0, V arg1, View arg2) ` | | ` boolean` | ` onTouchEvent(CoordinatorLayout arg0, V arg1, MotionEvent arg2) ` | | ` static void` | ` setTag(View arg0, Object arg1) ` | ||\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic constructors\n-------------------\n\n### Behavior\n\n```\npublic Behavior ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### Behavior\n\n```\npublic Behavior (Context context, \n AttributeSet attrs)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------|\n| `context` | `Context` \u003cbr /\u003e |\n| `attrs` | `AttributeSet` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### onDependentViewChanged\n\n```\npublic boolean onDependentViewChanged (CoordinatorLayout parent, \n SearchView child, \n View dependency)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|----------------------------|\n| `parent` | `CoordinatorLayout` \u003cbr /\u003e |\n| `child` | `SearchView` \u003cbr /\u003e |\n| `dependency` | `View` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |"]]