Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I believe you shouldn't use layout weights in this situtation or you've mixed them. You can leave the linear layouts with the weights for the rows, but since you want the edit text to appear at the bottom of the screen, what I would do is wrap everything in a RelativeLayout, then draw the edit text and align it to the parent's bottom and then put the linear layout aligned to be above the edit text.</p> <p>Try this layout (and of course, don't forget to change the drawables to your drawables since I removed some of them):</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;EditText android:id="@+id/edittextidAddTodayTask" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:drawableRight="@drawable/addtask" android:hint="Add Today Task" android:lines="3" android:maxLines="5" android:minLines="1" /&gt; &lt;LinearLayout android:id="@+id/topButtons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_alignParentTop="true" android:weightSum="30" &gt; &lt;Button android:id="@+id/todaytaskbtnid" style="?android:attr/buttonStyleSmall" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="10" android:gravity="center" android:text="TODAY" /&gt; &lt;Button android:id="@+id/tomorrowtaskbtnid" style="?android:attr/buttonStyleSmall" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="10" android:text="TOMORROW" /&gt; &lt;Button android:id="@+id/futuretaskbtnid" style="?android:attr/buttonStyleSmall" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_weight="10" android:text="FUTURE" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@id/edittextidAddTodayTask" android:layout_below="@id/topButtons" &gt; &lt;ListView android:id="@+id/frontpagetasklistid" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;/ListView&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&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