安卓导航抽屉没有列表视图 [英] Android Navigation Drawer without Listview

查看:192
本文介绍了安卓导航抽屉没有列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建像抽屉式导航轻扫菜单。但是,将是textviews和imageviews,就像一个半活动。是否有可能使这个?

i want to create a swipe menu like navigation drawer. But there is going to be textviews and imageviews, like a half activity. Is it possible to make this?

推荐答案

您可以使用 NavigationDrawer 从支持库。

You can use NavigationDrawer from support library.

包含的FrameLayout 作为一个孩子的 DrawerLayout ,使安卓layout_gravity =左。然后把你想要的任何东西。你不必只使用的ListView 。你把已经离开重心将是左边的菜单视图什么

Include a FrameLayout as a child of the DrawerLayout and make the android:layout_gravity="left". Then put anything you want in it. You do not have to use only ListView. What you put in a view that has left gravity will be the left menu

这篇关于安卓导航抽屉没有列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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