whalemare / sheetmenu

Library for speedy implementation menu with BottomSheet
124 stars 18 forks source link

Not all items are displayed at once #11

Closed indrih17 closed 5 years ago

indrih17 commented 6 years ago

Problem: Not all items are displayed at once, but if you swipe up-everything is visible.

Code:

SheetMenu().apply {
    menu = R.menu.delete_device_menu
    click = MenuItem.OnMenuItemClickListener {
        when (it.itemId) {
            ...
        }
        true
    }
}.show(mContext)

Menu:

<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:title="@string/sync_device"
        android:id="@+id/sync_device" />
    <item
        android:title="@string/delete"
        android:id="@+id/delete_device" />
</menu>