Android, slidingpanelayout vs navigationDrawer

北城以北 提交于 2019-12-03 06:32:58

This is what the official Navigation Drawer (DrawerLayout) looks like:

And this is what the SlidingPaneLayout looks like:

Both serve different purposes. The DrawerLayout serves as a menu, to put it simple. The SlidingPaneLayout on the other hand is a what you would use, if the content of both your screens would interact with each other. Or to as the documentation puts it:

The SlidingPaneLayout should be thought of only as a way to allow a two-pane layout normally used on larger screens to adapt to smaller screens in a natural way

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