Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Remove <code>android:layout_centerVertical="true"</code> from the views in your Relative Layout. I also made some changes to your slider to get to what you want. The crucial changes to the slider were: </p> <ol> <li><p>Add: <code>android:layout_alignTop="@+id/tool30"</code> and <code>android:layout_alignBottom="@+id/tool30"</code></p></li> <li><p>Remove <code>android:layout_alignParentRight="true"</code> and <code>android:layout_centerVertical="true"</code></p></li> </ol> <p>I made a few other cosmetic changes elsewhere while debugging the layout. </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;RelativeLayout android:id="@+id/laytoptoolbarhost" android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="5dip" android:layout_weight="0"&gt; &lt;View android:id="@+id/tool10" android:layout_width="32dip" android:layout_height="32dip" android:paddingRight="3dip" android:background="#00FF00" android:layout_alignParentLeft="true" &gt; &lt;/View&gt; &lt;View android:id="@+id/tool20" android:layout_width="32dip" android:layout_height="32dip" android:paddingRight="3dip" android:background="#FFFF00" android:layout_toRightOf="@+id/tool10" &gt; &lt;/View&gt; &lt;View android:id="@+id/tool30" android:layout_width="32dip" android:layout_height="32dip" android:paddingRight="3dip" android:background="#00FFFF" android:layout_toRightOf="@+id/tool20" &gt; &lt;/View&gt; &lt;SlidingDrawer android:id="@+id/slidesearch" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" android:layout_alignTop="@+id/tool30" android:layout_alignBottom="@+id/tool30" android:handle="@+id/sliderhandle" android:content="@+id/txtsearch"&gt; &lt;ImageView android:id="@+id/sliderhandle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/alarm_clock"&gt; &lt;/ImageView&gt; &lt;EditText android:id="@+id/txtsearch" android:layout_width="match_parent" android:layout_height="match_parent" android:textSize="20sp"&gt; &lt;/EditText&gt; &lt;/SlidingDrawer&gt; &lt;/RelativeLayout&gt; &lt;ListView android:id="@id/android:list" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:drawSelectorOnTop="false" /&gt; &lt;TextView android:id="@id/android:empty" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:textSize="20sp" android:text="nothing" /&gt; &lt;/LinearLayout&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