是有可能有导航抽屉内网格视图即网格视图的android导航抽屉? [英] is it possible to have android navigation drawer with grid view i.e. grid view inside navigation drawer?

查看:174
本文介绍了是有可能有导航抽屉内网格视图即网格视图的android导航抽屉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请我想要实现我的应用程序的抽屉式导航网格视图(2列)。
我想知道,这可能吗?
如果是的话,你能不能给我步骤来获得期望的结果?

Please I want to implement Grid View(2 column) in navigation drawer of my app. I want to know that is it possible? if yes, then can you give me steps to follow to get desired result?

推荐答案

是的,你可以在你的抽屉式导航任何你想要的布局。在 DrawerLayout 就是这样使用它的第一个孩子是正常的内容和第二个孩子为能进出刷卡可导航的抽屉里有特殊的包装。这第二个孩子可以是任何查看的ViewGroup 你喜欢的,包括 GridView控件的ListView 的LinearLayout 或什么的。

Yes, you can have any layout in your navigation drawer you want. The DrawerLayout is just a special wrapper that uses its first child as the normal content and the second child as the navigation drawer that can be swiped in and out. That second child can be any View or ViewGroup you like, including GridView, ListView, LinearLayout or whatever.

这篇关于是有可能有导航抽屉内网格视图即网格视图的android导航抽屉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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