Note that there are some explanatory texts on larger screens.

plurals
  1. POCan I add a Scrollview to this Xml?
    primarykey
    data
    text
    <p>Been trying to figure this out.. I am new to Adroid and trying to get the whole screen to scrollview...it's a header image and a list...would like it to all scroll together. Can it be done using this layout? Thanks!</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/containerView" android:background="@android:color/transparent" android:padding="0dip" android:layout_margin="0dip" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/headerImageContainer" android:background="@android:color/transparent" android:padding="0dip" android:layout_margin="0dip" android:layout_centerHorizontal="true" android:layout_alignParentTop="true" android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;ImageView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/headerImageView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_alignParentTop="true"&gt; &lt;/ImageView&gt; &lt;/LinearLayout&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/listViewContainer" android:background="@android:color/transparent" android:paddingLeft="35dip" android:paddingRight="35dip" android:paddingTop="10dip" android:paddingBottom="0dip" android:layout_margin="0dip" android:layout_weight="1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@+id/headerImageContainer"&gt; &lt;ListView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/listView" android:background="@android:color/transparent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:cacheColorHint="#000000" android:choiceMode="singleChoice" android:layout_weight="1" android:scrollbars="none"&gt; &lt;/ListView&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. 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