如何让 Android SlidingDrawer 从左侧滑出? [英] How to make an Android SlidingDrawer slide out from the left?
问题描述
我在我的应用程序中使用了 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
源代码,对其进行更改,并使用你的修改版.您同样不能制作从顶部下降的 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.
这篇关于如何让 Android SlidingDrawer 从左侧滑出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!