BottomSheetDragHandleView

public class BottomSheetDragHandleView


A drag handle view that can be added to bottom sheets associated with . 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

Public constructors

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

Public methods

void
onAccessibilityStateChanged(boolean enabled)
boolean
onTouchEvent(MotionEvent event)
void
setOnClickListener(OnClickListener l)
void
setOnTouchListener(OnTouchListener l)

Protected methods

void
void

Public constructors

BottomSheetDragHandleView

public BottomSheetDragHandleView(Context context)

BottomSheetDragHandleView

public BottomSheetDragHandleView(Context context, AttributeSet attrs)

BottomSheetDragHandleView

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

Public methods

onAccessibilityStateChanged

public void onAccessibilityStateChanged(boolean enabled)

onTouchEvent

public boolean onTouchEvent(MotionEvent event)

setOnClickListener

public void setOnClickListener(OnClickListener l)

setOnTouchListener

public void setOnTouchListener(OnTouchListener l)

Protected methods

onAttachedToWindow

protected void onAttachedToWindow()

onDetachedFromWindow

protected void onDetachedFromWindow()