如何使一个机器人SlidingDrawer从左侧滑出? [英] How to make an Android SlidingDrawer slide out from the left?

查看:257
本文介绍了如何使一个机器人SlidingDrawer从左侧滑出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序,它有它的处理程序放置在底部时在纵向模式下使用 slidingDrawer 。当用户切换为横向模式(宽屏)我想有位于左侧的处理程序。当我改变从垂直到水平的取向,该处理程序被放置在右边。

I'm using a slidingDrawer in my application that has its handler placed at the bottom when in portrait mode. When the user switches to landscape mode (widescreen) I would like to have the handler located on the left. When I change the orientation from vertical to horizontal, the handler is placed on the right.

我定义我的布局,这样的XML:

I have defined my layout XML like this:

<SlidingDrawer
    android:id="@+id/l_drawer"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:handle="@+id/l_handle"
    android:content="@+id/l_content"
    android:orientation="horizontal"
    android:layout_gravity="left"
    >

任何人有一个想法如何使它滑动由左到右?

Anyone have an idea for how to make it slide from left to right ?

推荐答案

我不认为你可以,其他的也许比通过抓住 SlidingDrawer 源$ C ​​$ C ,更改它,使用修改后的版本。你同样不能使一个 SlidingDrawer 一个从顶部。

I don't think you can, other than perhaps by grabbing the SlidingDrawer source code, making changes to it, and using your modified version. You similarly cannot make a SlidingDrawer that descends from the top.

这篇关于如何使一个机器人SlidingDrawer从左侧滑出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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