Android的 - 是抽屉式导航从右侧可能吗? [英] Android - Is Navigation Drawer from right hand side possible?

查看:137
本文介绍了Android的 - 是抽屉式导航从右侧可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<一个href="http://developer.android.com/training/implementing-navigation/nav-drawer.html">http://developer.android.com/training/implementing-navigation/nav-drawer.html

根据该文档,它没有说,如果它是可能的,以实现从右侧抽屉。它甚至有可能? :(

According to this doc, it doesn't say if it is possible to implement drawer from right hand side. Is it even possible? :(

推荐答案

下面是抽屉的文件,看来,您可以将其配置为从左侧或右侧拉出。

Here is the documentation on the drawer and it appears that you can configure it to pull out from the left or right.

抽屉定位和布局是使用控制   机器人:儿童的意见layout_gravity属性对应于   你想要的抽屉,从出现的观点端:左或右。   (或者在启动支持布局方向版本的平台/结束。)

Drawer positioning and layout is controlled using the android:layout_gravity attribute on child views corresponding to which side of the view you want the drawer to emerge from: left or right. (Or start/end on platform versions that support layout direction.)

<一个href="http://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html">http://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html

这篇关于Android的 - 是抽屉式导航从右侧可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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