1. 程式人生 > >BottomSheet 彈出式選單

BottomSheet 彈出式選單

這個套件真的又神奇又方便,可以直接把 menu 裡的 xml 變成漂亮的彈出式選單。

One way to present a set of actions to a user is with bottom sheets, a sheet of paper that slides up from the bottom edge of the screen. Bottom sheets offer flexibility in the display of clear and simple actions that do not need explanation.

我在使用上有遇到一個問題,就是無法在builder 裡 remove menu 的 group, 從外部無法存取到作者官方版本裡 private 的 menu object. 只能透過overwrite 作者的 object 並增加新的 method 才能做到。

更多執行畫面:

Sample Sample Sample Sample Sample