Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Put your <code>LinearLayout</code> with content and <code>SlidingDrawer</code> into <code>RelativeLayout</code></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:facebook="http://schemas.android.com/apk/res-auto" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#FFF"&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:gravity="center"&gt; // your content &lt;/LinearLayout&gt; &lt;SlidingDrawer android:layout_width="fill_parent" android:id="@+id/SlidingDrawer" android:handle="@+id/slideButton" android:content="@+id/contentLayout" android:padding="10dp" android:layout_height="150dp"&gt; &lt;Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/slideButton" android:background="@drawable/action_eating"&gt; &lt;/Button&gt; &lt;LinearLayout android:layout_width="fill_parent" android:id="@+id/contentLayout" android:orientation="vertical" android:gravity="center" android:padding="10dp" android:background="#45454F" android:layout_height="wrap_content"&gt; &lt;Button android:id="@+id/history" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/history" android:textColor="#000000" android:textSize="20sp" /&gt; &lt;/LinearLayout&gt; &lt;/SlidingDrawer&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; </code></pre>
 

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