Android Menu coming from bottom like Google Drive

巧了我就是萌 提交于 2019-12-12 13:12:11

问题


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.

What component should I use?


回答1:


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.



来源:https://stackoverflow.com/questions/30121910/android-menu-coming-from-bottom-like-google-drive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!