Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to set content in a Linear layout to the BOTTOM of the Screen in Android.?
    primarykey
    data
    text
    <p>See the following XML code</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;include layout="@layout/header" /&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="18dp" /&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/header" android:orientation="horizontal" &gt; &lt;ImageView android:layout_width="50dp" android:layout_height="50dp" android:src="@drawable/calendar" /&gt; &lt;TextView android:id="@+id/tvTitle" android:layout_width="fill_parent" android:layout_height="50dp" android:gravity="center" android:text="@string/calendar" android:textColor="#FFFFFFFF" android:textSize="18sp" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/myLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;/LinearLayout&gt; &lt;!-- &lt;include layout="@layout/footer"/&gt; --&gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom" android:background="@drawable/datename_bottom_bg" android:orientation="horizontal"&gt; &lt;TextView android:id="@+id/upgrade_4" android:layout_width="50dp" android:layout_height="50dp" android:layout_weight="1" android:drawableTop="@drawable/upgrade" android:gravity="center" android:text="@string/upgrade" android:textSize="8sp" /&gt; &lt;TextView android:id="@+id/panchang_4" android:layout_width="50dp" android:layout_height="50dp" android:layout_weight="1" android:drawableTop="@drawable/kalash_bottom" android:gravity="center" android:text="@string/panchang" android:textSize="8sp" /&gt; &lt;TextView android:id="@+id/time_range_4" android:layout_width="50dp" android:layout_height="50dp" android:layout_weight="1" android:drawableTop="@drawable/timer_bottom" android:gravity="center" android:text="@string/timespan" android:textSize="8sp" /&gt; &lt;TextView android:id="@+id/reminder_4" android:layout_width="50dp" android:layout_height="50dp" android:layout_weight="1" android:drawableTop="@drawable/reminder_bottom" android:gravity="center" android:text="@string/reminders" android:textSize="8sp" /&gt; &lt;!-- &lt;TextView android:id="@+id/calendar_4" android:layout_width="50dp" android:layout_height="50dp" android:drawableTop="@drawable/calendar_bottom" android:text="@string/calendar" android:textSize="8sp" android:gravity="center" android:layout_weight="1"/&gt; --&gt; &lt;/LinearLayout &gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre> <p>What this looks like is on the left and what I want it to look like is on the right, I also tried it by replacing LinearLayout to RelativeLaout but still not working. Please Help.! <img src="https://i.stack.imgur.com/czCIN.png" alt="Actual"><img src="https://i.stack.imgur.com/UTBNm.png" alt="Expected"></p>
    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.
 

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