如何在Android Studio中自定义导航抽屉? [英] How do I customize the navigation drawer in Android Studios?
本文介绍了如何在Android Studio中自定义导航抽屉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何自定义导航抽屉,如下所示:
How do I customize the navigation drawer to look like this:
我找不到任何可自定义导航抽屉的教程.谁能帮忙吗?
I cant find any tutorials to customize the navigation drawer. Can anyone please help?
推荐答案
您可以使用 MaterialDrawer 库有一个非常不错的API,并为抽屉设置了所需的自定义视图,如下所示:
You can use MaterialDrawer library that has a very nice API and set a custom view you want for the drawer like this:
drawer = new DrawerBuilder()
.withActivity(this)
.withCustomView(myView)
.build();
这篇关于如何在Android Studio中自定义导航抽屉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文