Android菜单像Google云端硬盘一样从底部发出 [英] Android Menu coming from bottom like Google Drive

查看:114
本文介绍了Android菜单像Google云端硬盘一样从底部发出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个浮动操作按钮,当用户点击它时,我希望显示一个布局,就像Google云端硬盘应用一样从底部进行动画播放(因此不会覆盖整个屏幕). 我读过有人建议开源Umano的AndroidSlidingUpPanel,但这与Google Play音乐应用更相似,我不希望这样做,因为我不需要面板可拖动/滑动.

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.

我应该使用什么组件?

推荐答案

这是底页"组件.查看其规格: http://www.google.com/design /spec/components/bottom-sheets.html#bottom-sheets-specs

This is the Bottom sheet component. Check out its specs: http://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.

这篇关于Android菜单像Google云端硬盘一样从底部发出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆