android - Keyboard hides my half of edit-text and button below it even in scroll view -


i having trouble keyboard covers edit-text , half of button in scroll view.

here's layout , please tell me how should resolve problem. many questions on topic none of them s working me.

<?xml version="1.0" encoding="utf-8"?> <linearlayout     xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:background="@drawable/bg"     android:layout_height="match_parent">     <scrollview         android:layout_width="match_parent"         android:fillviewport="true"          android:layout_height="match_parent">      <relativelayout          android:layout_width="match_parent"         android:layout_height="wrap_content"          android:orientation="vertical">          <linearlayout             android:layout_width="match_parent"              android:layout_height="wrap_content"             android:layout_gravity="bottom"             android:orientation="vertical"             android:paddingbottom="60dp"             android:layout_alignparentbottom="true"             android:layout_alignparentleft="true"             android:layout_alignparentstart="true">               <linearlayout                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:gravity="center"                 android:paddingbottom="10dp"                 android:paddingtop="10dp">                  <tablerow                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:layout_marginbottom="@dimen/abc_action_bar_subtitle_bottom_margin_material"                     android:layout_marginleft="@dimen/abc_action_bar_overflow_padding_end_material"                     android:layout_marginright="@dimen/abc_action_bar_overflow_padding_end_material"                     android:layout_margintop="@dimen/abc_action_bar_subtitle_bottom_margin_material"                     android:background="@drawable/login_layout_bg"                     android:paddingbottom="10dp"                     android:paddingleft="10dp"                     android:paddingright="10dp"                     android:paddingtop="10dp">                      <edittext                         android:id="@+id/reg_email"                         android:layout_width="0dp"                         android:layout_height="wrap_content"                         android:layout_gravity="center"                         android:layout_weight="1"                         android:background="@android:color/transparent"                         android:hint="username"                         android:inputtype="textemailaddress"                         android:singleline="true"                          android:textcolor="@color/textcolor3"                         android:textcolorhint="@color/about_libraries_card_dark" />                      <view                         android:layout_width="0.5dp"                         android:layout_height="match_parent"                         android:background="@color/md_grey_700" />                      <imageview                         android:layout_width="wrap_content"                         android:layout_height="wrap_content"                         android:layout_gravity="center"                         android:src="@drawable/client_icon" />                 </tablerow>             </linearlayout>              <linearlayout                 android:layout_width="match_parent"                 android:layout_height="wrap_content"                 android:gravity="center"                 android:paddingbottom="10dp"                 android:paddingtop="10dp">                  <tablerow                     android:id="@+id/register"                     android:layout_width="match_parent"                     android:layout_height="wrap_content"                     android:layout_marginbottom="@dimen/abc_action_bar_overflow_padding_end_material"                     android:layout_marginleft="@dimen/abc_action_bar_overflow_padding_end_material"                     android:layout_marginright="@dimen/abc_action_bar_overflow_padding_end_material"                     android:layout_margintop="@dimen/abc_action_bar_subtitle_bottom_margin_material"                     android:background="@drawable/login_btn_bg"                     android:padding="@dimen/abc_action_bar_overflow_padding_end_material">                      <textview                         android:layout_width="match_parent"                         android:layout_height="wrap_content"                         android:gravity="center"                         android:text="register"                         android:textcolor="@android:color/white" />                 </tablerow>             </linearlayout>         </linearlayout>       </relativelayout>      </scrollview>  </linearlayout> 

use

<activity android:windowsoftinputmode="adjustpan" > 

you can refer here more clarification.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -