BottomSheetDragHandleView

public class BottomSheetDragHandleView
extends AppCompatImageView implements AccessibilityManager.AccessibilityStateChangeListener

java.lang.Object
   ↳ android.view.View
     ↳ android.widget.ImageView
       ↳ androidx.appcompat.widget.AppCompatImageView
         ↳ com.google.android.material.bottomsheet.BottomSheetDragHandleView


A drag handle view that can be added to bottom sheets associated with BottomSheetBehavior. This view will automatically handle the accessibility interaction when the accessibility service is enabled. When you add a drag handle to a bottom sheet and the user enables the accessibility service, the drag handle will become important for accessibility and clickable. Clicking the drag handle will toggle the bottom sheet between its collapsed and expanded states.

Summary

Inherited constants

Inherited fields

Public constructors

BottomSheetDragHandleView(Context context)
BottomSheetDragHandleView(Context context, AttributeSet attrs)
BottomSheetDragHandleView(Context context, AttributeSet attrs, int defStyleAttr)

Public methods

void onAccessibilityStateChanged(boolean enabled)

Protected methods

void onAttachedToWindow()
void onDetachedFromWindow()

Inherited methods

Public constructors

BottomSheetDragHandleView

public BottomSheetDragHandleView (Context context)

Parameters
context Context

BottomSheetDragHandleView

public BottomSheetDragHandleView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

BottomSheetDragHandleView

public BottomSheetDragHandleView (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int

Public methods

onAccessibilityStateChanged

public void onAccessibilityStateChanged (boolean enabled)

Parameters
enabled boolean

Protected methods

onAttachedToWindow

protected void onAttachedToWindow ()

onDetachedFromWindow

protected void onDetachedFromWindow ()