ScrollView is not scrolling in android -


hi new android , cant understand why happening. unable scroll scrollview. has textview , imageview , few linear layouts inside of , code below

can 1 me please

code:-

    <?xml version="1.0" encoding="utf-8"?> <scrollview xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@android:color/white"     android:orientation="vertical"     android:theme="@style/content">      <linearlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_margin="15dp"         android:animatelayoutchanges="true"         android:orientation="vertical"         android:scrollbars="vertical">          <textview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="@string/enter_basicinformation_title" />          <linearlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:orientation="horizontal"             android:weightsum="3">              <linearlayout                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:layout_margintop="@dimen/edit_text_margin_top"                 android:layout_weight="2">                  <relativelayout                     android:layout_width="match_parent"                     android:layout_height="match_parent">                      <fr.ganfra.materialspinner.materialspinner                         android:id="@+id/spinstate"                         android:layout_width="match_parent"                         android:layout_height="wrap_content"                         android:layout_centervertical="true"                         app:ms_arrowcolor="@color/text_hint_color"                         app:ms_arrowsize="16dp"                         app:ms_floatinglabelcolor="@color/text_hint_color"                         app:ms_floatinglabeltext="@string/sir_name_title"                         app:ms_highlightcolor="@color/coloraccent"                         app:ms_hint="@string/sir_name_title"                         app:ms_multiline="true" />                  </relativelayout>              </linearlayout>              <android.support.design.widget.textinputlayout                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:layout_marginleft="10dp"                 android:layout_weight="1"                 android:theme="@style/textfieldinputlayout">                  <edittext                     android:id="@+id/username_id"                     style="@style/materialdesignedittextstyle"                     android:drawablepadding="10dp"                     android:hint="@string/username_hint"                     android:imeoptions="actionnext"                     android:inputtype="textpersonname"                     android:nextfocusdown="@+id/lastname_id" />              </android.support.design.widget.textinputlayout>          </linearlayout>          <android.support.design.widget.textinputlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_margintop="@dimen/edit_text_margin_top"             android:theme="@style/textfieldinputlayout">              <edittext                 android:id="@+id/lastname_id"                 style="@style/materialdesignedittextstyle"                 android:drawablepadding="10dp"                 android:hint="@string/last_name_hint"                 android:imeoptions="actionnext"                 android:inputtype="textpersonname"                 android:nextfocusdown="@+id/email_id" />          </android.support.design.widget.textinputlayout>          <android.support.design.widget.textinputlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_margintop="@dimen/edit_text_margin_top"             android:theme="@style/textfieldinputlayout">              <edittext                 android:id="@+id/email_id"                 style="@style/materialdesignedittextstyle"                 android:drawablepadding="10dp"                 android:hint="@string/email_id_hint"                 android:imeoptions="actionnext"                 android:inputtype="textpersonname"                 android:nextfocusdown="@+id/re_email_id" />          </android.support.design.widget.textinputlayout>          <android.support.design.widget.textinputlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_margintop="@dimen/edit_text_margin_top"             android:theme="@style/textfieldinputlayout">              <edittext                 android:id="@+id/re_email_id"                 style="@style/materialdesignedittextstyle"                 android:drawablepadding="10dp"                 android:hint="@string/re_email_id_hint"                 android:imeoptions="actionnext"                 android:inputtype="textpersonname" />          </android.support.design.widget.textinputlayout>          <android.support.design.widget.textinputlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_margintop="@dimen/edit_text_margin_top"             android:theme="@style/textfieldinputlayout">              <edittext                 android:id="@+id/password_id"                 style="@style/materialdesignedittextstyle"                 android:drawablepadding="10dp"                 android:hint="@string/password_hint"                 android:imeoptions="actionnext"                 android:inputtype="textpersonname"                 android:nextfocusdown="@+id/re_password_id" />          </android.support.design.widget.textinputlayout>          <android.support.design.widget.textinputlayout             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:theme="@style/textfieldinputlayout">              <edittext                 android:id="@+id/re_password_id"                 style="@style/materialdesignedittextstyle"                 android:drawablepadding="10dp"                 android:hint="@string/re_reenter_password_hint"                 android:imeoptions="actionnext"                 android:inputtype="textpersonname" />          </android.support.design.widget.textinputlayout>          <button             android:id="@+id/register_button_id"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_margintop="20dp"             android:layout_weight="1"             android:paddingleft="15dp"             android:paddingright="15dp"             android:text="@string/register_title"             android:theme="@style/greencolorbutton" />          <textview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_gravity="center_horizontal"             android:layout_margintop="25dp"             android:text="@string/existing_user_title" />      </linearlayout>  </scrollview> 

screen:-

enter image description here

// make parent layout scroll , put linear layout inside . 

<scrollview      android:id="@+id/scrollview1"      android:layout_width="match_parent"      android:layout_height="match_parent"      >  <linearlayout      android:layout_width="match_parent"      android:layout_height="wrap_content"      android:animatelayoutchanges="true"      android:orientation="vertical"      android:scrollbars="vertical" >        ...       ...  </linearlayout>  </scrollview>


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -