且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-01-10 12:29:21

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

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