Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid - Making Sliding Drawer to slide from Left-to-Right
    text
    copied!<p>I have implemented "Sliding Drawer" in my application using the below XML layout: (I got this example from androidpeople.com)</p> <pre><code>&lt;LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android" android:background="@drawable/androidpeople"&gt; &lt;SlidingDrawer android:layout_width="wrap_content" android:id="@+id/SlidingDrawer" android:handle="@+id/slideHandleButton" android:content="@+id/contentLayout" android:layout_height="75dip" android:orientation="horizontal"&gt; &lt;Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/slideHandleButton" android:background="@drawable/closearrow"&gt; &lt;/Button&gt; &lt;LinearLayout android:layout_width="wrap_content" android:id="@+id/contentLayout" android:orientation="horizontal" android:gravity="center|top" android:padding="10dip" android:background="#C0C0C0" android:layout_height="wrap_content"&gt; &lt;Button android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"&gt;&lt;/Button&gt; &lt;Button android:id="@+id/Button02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"&gt;&lt;/Button&gt; &lt;Button android:id="@+id/Button03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Content"&gt;&lt;/Button&gt; &lt;/LinearLayout&gt; &lt;/SlidingDrawer&gt; &lt;/LinearLayout&gt; </code></pre> <p>but what i am wanting is to Slide the drawer from Left-to-right(Horizontal) instead of this right-to-left, how do i make slide drawer to slide from left-to-right direction ???</p> <p>pls share your idea/view/opinion/issue with me and catch me out of this problem.</p> <p>Thanx</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload