Relative Layout GridView inside of ScrollView Android -


i've feeling doing totally incorrect know stack overflow loves attempt. trying make whole view scrollable , icons in grid view scroll whole view, right icons scroll. unsure start this. attach layout file onto this. want below full scrollable view right icons @ bottom scroll.

app view

<?xml version="1.0" encoding="utf-8"?> <scrollview> <relativelayout  xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/activity_main"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingbottom="@dimen/activity_vertical_margin"     android:paddingleft="@dimen/activity_horizontal_margin"     android:paddingright="@dimen/activity_horizontal_margin"     android:paddingtop="@dimen/activity_vertical_margin"     tools:context="com.example.curtisboylan.myapplication.searchscreen"     android:background="@color/grey2">      <imageview         android:id="@+id/imageview9"         android:layout_below="@+id/edittext"         android:layout_marginleft="7dp"         android:layout_marginright="7dp"         android:layout_width="400dp"         android:layout_margintop="185dp"         android:background="@android:color/white"         android:layout_height="60dp" />      <imageview         android:id="@+id/imageview7"         android:layout_below="@+id/edittext"         android:layout_marginleft="7dp"         android:layout_marginright="7dp"         android:layout_width="400dp"         android:layout_margintop="115dp"         android:background="@android:color/white"         android:layout_height="60dp" />      <imageview         android:id="@+id/imageview5"         android:layout_below="@+id/edittext"         android:layout_marginleft="7dp"         android:layout_marginright="7dp"         android:layout_width="400dp"         android:background="@android:color/white"         android:layout_margintop="15dp"         android:layout_height="90dp" />      <!-- datapicker text label , button -->      <textview         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:text="time displayed here"         android:textalignment="center"         android:id="@+id/txt_textdatetime"         android:textsize="30dp"         android:layout_aligntop="@+id/imageview5"         android:layout_alignparentleft="true"         android:layout_alignparentstart="true"         android:layout_margintop="17dp" />      <button         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:text="click change date"         android:id="@+id/btn_datepicker"         android:background="@null"         android:textallcaps="false"         android:layout_alignbottom="@+id/imageview5"         android:layout_alignparentleft="true"         android:layout_alignparentstart="true" />      <button         android:layout_width="match_parent"         android:id="@+id/button"         android:layout_x="-10dp"         android:layout_y="481dp"         android:background="@drawable/topbar"         android:layout_height="60dp"         android:text="continue"         android:textallcaps="false"         android:textsize="30sp"         android:textcolor="@android:color/white"         android:fontfamily="sans-serif"         android:layout_alignparentbottom="true"         android:layout_alignparentleft="true"         android:layout_alignparentstart="true" />      <gridview         android:id="@+id/gridview1"         android:layout_width="match_parent"         android:numcolumns="auto_fit"         android:horizontalspacing="10dp"         android:verticalspacing="10dp"         android:layout_height="190dp"         android:layout_below="@+id/imageview9"         android:layout_alignparentleft="true"         android:layout_alignparentstart="true"         android:layout_margintop="16dp">     </gridview>      <textview         android:text="what location?"         android:layout_x="200dp"         android:layout_y="366dp"         android:id="@+id/textview"         android:textsize="18sp"         android:layout_height="30dp"         android:layout_alignbaseline="@+id/button3"         android:layout_alignbottom="@+id/button3"         android:layout_marginleft="48dp"         android:layout_width="275dp" />      <imageview         android:layout_height="40dp"         app:srccompat="@drawable/devices"         android:id="@+id/imageview8"         android:layout_width="30dp"         android:layout_marginleft="10dp"         android:layout_margintop="125dp" />      <imageview         android:layout_height="40dp"         app:srccompat="@drawable/locicon1"         android:id="@+id/imageview6"         android:layout_width="22dp"         android:layout_margintop="10dp"         android:layout_aligntop="@+id/imageview9"         android:layout_alignleft="@+id/imageview8"         android:layout_alignstart="@+id/imageview8"         android:layout_marginleft="5dp" />      <button         android:id="@+id/button3"         android:background="@drawable/locationicon2"         android:layout_width="20dp"         android:layout_height="20dp"         android:layout_alignbottom="@+id/imageview6"         android:layout_torightof="@+id/textview"         android:layout_toendof="@+id/textview"         android:layout_marginbottom="9dp" />      <button         android:text=""         android:background="@android:color/transparent"         android:textsize="18sp"         android:textallcaps="false"         android:layout_width="280dp"         android:layout_height="60dp"         android:id="@+id/googlelocbtn"         android:layout_alignbaseline="@+id/textview"         android:layout_alignbottom="@+id/textview"         android:layout_tostartof="@+id/button3" />      <edittext         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:inputtype="textpersonname"         android:ems="10"         android:id="@+id/edittext2"         android:hint="what device wish fix?"         android:background="@android:color/transparent"         android:layout_marginbottom="8dp"         android:layout_alignbottom="@+id/imageview8"         android:layout_torightof="@+id/imageview8"         android:layout_marginleft="12dp"         android:layout_marginstart="12dp"         android:layout_alignright="@+id/button3"         android:layout_alignend="@+id/button3" />      <!-- end -->  </relativelayout> </scrollview> 

use scroll view

<scrollview xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:fillviewport="true">          <!-- relative layout  -->         <!-- have -->   </scrollview> 

try . may you


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -