android - How to prevent View above the keyboard (adjustResize)? -
my layout has following structure:
in manifest have attribute defines behavior of keyboard display after user clicked on edittext, contained in scrollview:
android:windowsoftinputmode="adjustresize"
here btnapply
markup:
<linearlayout android:id="@+id/btnapply" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:layout_alignparentleft="false" android:layout_alignparentstart="true" android:background="#00bbe3" android:orientation="vertical" android:layout_alignparenttop="false"> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_margin="15dip" android:text="continue" android:textcolor="#ffffff" android:textsize="23.75sp" android:textstyle="bold" /> </linearlayout>
so, btnapply
floats above keyboard on top of scrollview
, , can scroll of edittext's if don't fit on screen.
is possible make btnapply
doesn't pop above keyboard , pressed bottom of screen?
try change
android:windowsoftinputmode="adjustresize"
to
android:windowsoftinputmode="adjustpan"
moreover dont need put edittext in scrollview.
you can add
android:scrollbars = "vertical"
to edittext
cheers
Comments
Post a Comment