Java 类android.support.design.widget.BottomSheetBehavior.BottomSheetCallback 实例源码

项目:deagle    文件:BottomSheetBindingAdapter.java   
@BindingAdapter("behavior_bottomSheetCallback")
public static void bindBottomSheetCallback(final View view, final BottomSheetCallback callback) {
    final BottomSheetBehavior<View> behavior = BottomSheetBehavior.from(view);
    if (behavior == null) throw new IllegalArgumentException(view + " has no BottomSheetBehavior");
    behavior.setBottomSheetCallback(callback);
}