Note that there are some explanatory texts on larger screens.

plurals
  1. POMake a RelativeLayout at the bottom of a Scrollview
    text
    copied!<p>I have a TableLayout inside a Scrollview, I want to set a FIXED RelativeLayout at the bottom of the ScrollView=>TableLayout. With that XML code, I have always that RelativeLayout above the TableLayout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:glowpad="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/classement_layout" android:background="#000000"&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#FFFFFF" android:scrollbarFadeDuration="1000" android:id="@+id/scroll_table" android:scrollbarSize="12dip" &gt; &lt;TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/tableLayout1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:shrinkColumns="*" android:stretchColumns="*" android:background="#000000" &gt; &lt;/TableLayout&gt; &lt;/ScrollView&gt; &lt;RelativeLayout android:layout_width="wrap_content" android:layout_height="80dp" android:layout_alignBottom="@+id/scroll_table" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" &gt; &lt;ImageView android:id="@+id/imageView1" android:layout_width="20dp" android:layout_height="20dp" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:layout_marginLeft="22dp" android:src="@drawable/green" /&gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:layout_toRightOf="@+id/imageView1" android:text="Qualification pour la ligue des champions" android:textColor="#ffffff"/&gt; &lt;ImageView android:id="@+id/imageView2" android:layout_width="20dp" android:layout_height="20dp" android:layout_alignLeft="@+id/imageView1" android:layout_centerVertical="true" android:src="@drawable/blue" /&gt; &lt;/RelativeLayout&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