Kennyc1012 / BottomSheetMenu

BottomSheetMenu style dialogs for Android
Apache License 2.0
887 stars 99 forks source link

Bottom sheet with lot of content will cover whole screen? #51

Closed ninonur closed 5 years ago

ninonur commented 6 years ago

Bottom sheet with lot of content will cover whole screen. So can or should possibility adding such a maximum height? So I do this... BottomSheet build = new BottomSheet.Builder(this) .setSheet(R.menu.bulk_option_menu) .setListener(this) .grid() .create(); ViewGroup.LayoutParams param = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,200); build.getLayout().setLayoutParams(param); But setlayoutparam returning java.lang.NullPointerException

Kennyc1012 commented 6 years ago

The layout has not been created yet until the dialog is shown. I would set the layout params in the onSheetShown(BottomSheet bottomSheet, Object object) method of the listener

Kennyc1012 commented 5 years ago

Fixed with 3.0.0 release