SlidingPaneLayout和NavigationDrawer的区别 [英] Difference between SlidingPaneLayout and NavigationDrawer

查看:688
本文介绍了SlidingPaneLayout和NavigationDrawer的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的不知道什么是创建导​​航菜单的这两种方法之间的差异。所以,我读了既可以用作容器的两个片段(主要片段,细节片段)。所以,你能帮助我理解哪种方法更好,为什么?我查不到相关信息。

I really don't know what is the difference between these two approaches of creating navigation menu. So I read that both can be used as a container for two fragments (main fragment, detail fragment). So can you help me to understand which approach is better and why? I can't find out relevant information.

感谢你。

推荐答案

这次会议是Android的设计UI开发由罗马Nurik和尼克·布彻: https://developers.google.com/events/io/sessions/326204977

The session was "Android Design for UI Developers" by Roman Nurik and Nick Butcher: https://developers.google.com/events/io/sessions/326204977

pretty的很多东西CommonsWare说,从本质上讲,导航抽屉是铬和顶级导航,所以它覆盖的应用程序的内容。 SlidingPaneLayout为内容导航,因此,它不覆盖含量

Pretty much what CommonsWare said, essentially, Navigation Drawer is for chrome and top level navigation, so it overlays app content. SlidingPaneLayout is for content navigation, thus it doesn't overlay content.

编辑: 视频仍然可以在这里找到 - https://www.youtube.com/watch?v= Jl3-lzlzOJI

The video is still available here - https://www.youtube.com/watch?v=Jl3-lzlzOJI

这篇关于SlidingPaneLayout和NavigationDrawer的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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