1

SlidingDrawerを左から右にスライドさせたいのですが、オプションがあります。xmlファイルのSlidingDrawerタグでandroid:rotation = 90を定義できますが、rotationタグはAndroid3.0で機能します。

これを左から右にスライドさせるのにうんざりしています。これを手伝ってくれる人はいますか?

ここに画像の説明を入力してください

ここに画像の説明を入力してください

このように、事前に感謝

4

2 に答える 2

0

このコードを使用...

<?xml version="1.0" encoding="utf-8"?>
    <LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:gravity="center_vertical"
    android:background="@drawable/logo11"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <com.sliding.TransparentPanel
    android:id="@+id/popup_window"
    android:orientation="vertical"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="left"
    android:padding="1px"
    android:background="#ffffff">
    <CheckBox android:id="@+id/check1"
    android:layout_width="wrap_content"
    android:textColor="#FFFFFF"
    android:layout_height="wrap_content" android:text="Satellite View" />
    <CheckBox android:id="@+id/check2"
    android:layout_width="wrap_content"
    android:textColor="#FFFFFF"
    android:layout_height="wrap_content" android:text="Street View" />
    <CheckBox android:id="@+id/check3"
    android:textColor="#FFFFFF"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" android:text="Traffic" />
    </com.sliding.TransparentPanel>
    <Button android:id="@+id/show_popup_button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/slid4_n"/>
    </LinearLayout>
于 2013-03-06T05:37:03.183 に答える
0

この素敵なサンプルをチェックしてください:

http://blog.sephiroth.it/2011/03/29/widget-slidingdrawer-top-to-bottom/

左から右にして、使用したいレイアウトを使用します。

ビューのサイズについては、MultiDirectionSlidingDrawer width に設定します。

于 2013-04-28T13:07:18.413 に答える