Android的 - 是抽屉式导航从右侧可能吗?抽屉式、Android

2023-09-11 11:19:17 作者:你是病根

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.)

http://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html