问题描述
我在我的应用程序,它有它的处理程序放置在底部时在纵向模式下使用 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从左侧滑出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!