阅读背景:

Android菜单来自谷歌云端硬盘

来源:互联网 

I have a floating action button and when the users taps on it I want a layout to be shown, animating from the bottom exactly like the Google Drive app (so not covering the whole screen). I read someone suggest the open source Umano's AndroidSlidingUpPanel but that is more similar to the Google Play Music app and I don't want that as I don't need the panel to be draggable/slidable.

我有一个浮动操作按钮,当用户点击它时,我想要显示一个布局,从底部开始动画,就像Google Drive应用程序一样(所以不覆盖整个屏幕)。我看过有人建议使用开源Umano的AndroidSlidingUpPanel,但这与Google Play音乐应用程序更相似,我不希望这样,因为我不需要面板可拖动/可滑动。

What component should I use?

我应该使用什么组件?

1 个解决方案

#1


This is the Bottom sheet component. Check out its specs: https://www.google.com/design/spec/components/bottom-sheets.html#bottom-sheets-specs

这是底部工作表组件。查看其规格:https://www.google.com/design/spec/components/bottom-sheets.html#bottom-sheets-specs

There are third libraries for the bottom sheet if you don't want to make it your self.

如果您不想让自己成为自己,那么底页有第三个库。


分享到: