[英]Slide up Bottom Sheet peek over screen top
您可以在聆聽BottomSheetBehavior
嘗試對 BottomSheet 布局進行一些更改:
BottomSheetBehavior behavior = BottomSheetBehavior.from(mBottomSheetBehavior);
behavior.setBottomSheetCallback(new BottomSheetCallback() {
@Override
public void onStateChanged(@NonNull View bottomSheet, int newState) {
// Here you can implement your logic with layour change
}
@Override
public void onSlide(@NonNull View bottomSheet, float slideOffset) {
// Here you can implement your logic with layour change
}
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.