Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here are the things I have changed:</p> <ul> <li>Moved top layout to bottom</li> <li>Gave bottom layout name <code>android:id="@+id/bottom_layout"</code></li> <li>Gave top layout a name <code>android:id="@+id/top_layout"</code> (Not necessary just for clarity)</li> <li><p>Now top layout will have these properties:</p> <p><code>android:layout_above="@id/bottom_layout"</code></p> <p><code>android:layout_alignParentTop="true"</code></p> <p>The first one is to make top layout anchored above bottom layout. Second one is to align top edge of top layout to parent's top. Which in this case is RelativeLayout.</p></li> <li><p>Now bottom layout will have these properties:</p> <p><code>android:layout_alignParentBottom="true"</code></p> <p>It will tell that bottom edge of bottom layout matches with bottom edge of parent (which is RelativeLayout)</p></li> </ul> <p>Below is the fully working layout:</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="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;!-- Buttons --&gt; &lt;LinearLayout android:id="@+id/bottom_layout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_alignParentBottom="true" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:background="#FFFFFF" android:orientation="vertical" android:paddingBottom="5dp" &gt; &lt;Button android:id="@+id/go_to_article" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5dp" android:layout_marginTop="15dp" android:text="Feed full" /&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;Button android:id="@+id/next_feed" android:layout_width="40dp" android:layout_height="40dp" /&gt; &lt;Button android:id="@+id/share_feed" android:layout_width="100dp" android:layout_height="40dp" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:text="share" /&gt; &lt;Button android:id="@+id/delete_feed" android:layout_width="100dp" android:layout_height="40dp" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:text="delete" /&gt; &lt;Button android:id="@+id/prev_feed" android:layout_width="40dp" android:layout_height="40dp" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;!-- ~Buttons --&gt; &lt;LinearLayout android:id="@+id/top_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@id/bottom_layout" android:layout_alignParentTop="true" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="0.6" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/feed_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center_vertical" /&gt; &lt;TextView android:id="@+id/feed_info" android:layout_width="match_parent" android:layout_height="wrap_content" /&gt; &lt;/LinearLayout&gt; &lt;ImageView android:id="@+id/feed_fav_ico" android:layout_width="50dp" android:layout_height="50dp" android:layout_alignParentRight="true" android:layout_gravity="center_vertical|right" android:background="@drawable/ic_launcher" /&gt; &lt;/LinearLayout&gt; &lt;ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true" android:scrollY="20dp" &gt; &lt;TextView android:id="@+id/feed_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/long_test" /&gt; &lt;/ScrollView&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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