Most visited

Recently visited

BottomSheetBehavior.BottomSheetCallback

public static abstract class BottomSheetBehavior.BottomSheetCallback
extends Object

java.lang.Object
   ↳ android.support.design.widget.BottomSheetBehavior.BottomSheetCallback


回调监控有关底部表单的事件。

Summary

Public constructors

BottomSheetBehavior.BottomSheetCallback()

Public methods

abstract void onSlide(View bottomSheet, float slideOffset)

当底部表单被拖动时调用。

abstract void onStateChanged(View bottomSheet, int newState)

当底部纸张改变其状态时调用。

Inherited methods

From class java.lang.Object

Public constructors

BottomSheetBehavior.BottomSheetCallback

BottomSheetBehavior.BottomSheetCallback ()

Public methods

onSlide

void onSlide (View bottomSheet, 
                float slideOffset)

当底部表单被拖动时调用。

Parameters
bottomSheet View: The bottom sheet view.
slideOffset float: The new offset of this bottom sheet within its range, from 0 to 1 when it is moving upward, and from 0 to -1 when it moving downward.

onStateChanged

void onStateChanged (View bottomSheet, 
                int newState)

当底部纸张改变其状态时调用。

Parameters
bottomSheet View: The bottom sheet view.
newState int: The new state. This will be one of STATE_DRAGGING, STATE_SETTLING, STATE_EXPANDED, STATE_COLLAPSED, or STATE_HIDDEN.

Hooray!