SlidingMenu 库和 Android Navigation Drawer 有什么区别? [英] What is the difference between the SlidingMenu library and the Android Navigation Drawer?

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

问题描述

SlidingMenu 库是一个优秀的第三方库,我已经使用了很长时间.现在我知道 Android 使用 Navigation Drawer 提供了一种新的导航模式.它看起来像滑动菜单.那么有没有人已经使用这两个?有什么区别,优缺点是什么?非常感谢.

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 library是一个第三方api,它使用了一个RelativeLayout 里面.主要优点是根据您的要求进行定制.购买你的布局必须基于视图组,不幸的是这否定了 <merge> 优化.

SlidingMenu library is a third party api which uses a RelativeLayout inside. The main advantage is customization according to your requirement. Buy your layouts have to be based on a viewgroup, unfortunatly this negates the <merge> optimisations.

导航抽屉android的支持库中可用它在内部使用 DrawerLayout.主要优点是提高了性能.

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

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

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