在SlidingMenu库和Android导航抽屉之间的区别是什么? [英] What is the difference between the SlidingMenu library and the Android Navigation Drawer?

查看:118
本文介绍了在SlidingMenu库和Android导航抽屉之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该SlidingMenu库是一个很好的第三方库,我已经用了很长的时间。现在我知道Android提供了利用导航抽屉一个新的导航模式。它看起来像滑动菜单。那么,有没有任何人谁已经在使用这两种两者兼而有之?有什么区别,什么是利弊?非常感谢。

The SlidingMenu library is an excellent third party library and I've already used it for a long time. Now I know Android provides a new navigation pattern using Navigation Drawer. It looks like the sliding menu. So is there anyone who already uses these two both? What is the difference and what are the pros and cons? Thanks a lot.

推荐答案

SlidingMenu 是第三方API,它使用了<一href="http://developer.android.com/reference/android/widget/RelativeLayout.html">RelativeLayout内。其主要优点是根据您的要求定制。买你的布局必须基于一个ViewGroup中,不幸的是这否定了&LT;合并&GT; 的优化

抽屉式导航可在支持库它使用<一个href="http://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html">DrawerLayout内。的主要优点是改进的性能。

Navigation Drawer is available in the Support Library of android it uses DrawerLayout inside. The main advantage is improved performance.

这篇关于在SlidingMenu库和Android导航抽屉之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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