Note that there are some explanatory texts on larger screens.

plurals
  1. POI want to scroll the images
    primarykey
    data
    text
    <p>I want to scroll the images in such a way that the back button is not scrolled. I am trying to take the back button above the scroll view but unable to find the solution. Please help. This is my code.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/RelativeLayout02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" &gt; &lt;ImageButton android:id="@+id/animal_back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_alignParentTop="true" android:src="@drawable/back" /&gt; &lt;ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true" android:orientation="vertical" &gt; &lt;RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" &gt; &lt;ImageButton android:id="@+id/animal1" android:layout_width="200dp" android:layout_height="200dp" android:layout_weight="1.0" android:src="@drawable/ant" /&gt; &lt;ImageButton android:id="@+id/animal2" android:layout_width="200dp" android:layout_height="200dp" android:layout_weight="1.0" android:layout_toRightOf="@+id/animal1" android:src="@drawable/bat" /&gt; &lt;ImageButton android:id="@+id/animal3" android:layout_width="200dp" android:layout_height="200dp" android:layout_weight="1.0" android:layout_toRightOf="@+id/animal2" android:src="@drawable/bear" /&gt; &lt;ImageButton android:id="@+id/animal4" android:layout_width="200dp" android:layout_height="200dp" android:layout_weight="1.0" android:layout_toRightOf="@+id/animal3" android:src="@drawable/cheetah" /&gt; &lt;ImageButton android:id="@+id/animal5" android:layout_width="200dp" android:layout_height="200dp" android:layout_weight="1.0" android:layout_below="@+id/animal1" android:src="@drawable/cow" /&gt; &lt;ImageButton android:id="@+id/animal6" android:layout_width="200dp" android:layout_height="200dp" android:layout_weight="1.0" android:layout_below="@+id/animal2" android:layout_toRightOf="@+id/animal5" android:src="@drawable/donkey" /&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; &lt;/RelativeLayout&gt; </code></pre> <p>And now the button is going behind. Its getting hidden.</p>
    singulars
    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