Android layout hidden on keyboard show -
i have strange problem layout. when tap on edittext
, keyboard shown edittext
stay on bottom, when tap on to hide keyboard, keyboard hides , edittext
go should when want input text. when tap again, keyboard shown , edittext
goes down behind keyboard...
<relativelayout android:layout_width="match_parent" android:layout_height="match_parent" > <scrollview android:layout_width="match_parent" android:layout_height="fill_parent" android:above="@+id/rl_commands"> <textview android:layout_width="match_parent" android:layout_height="wrap_content"/> </scrollview> <relativelayout android:layout_width="match_parent android:layout_height="24dp" android:id="@+id/rl_commands" android:alignparentbottom="true"> <edittext ............/> <button .........../> </relativelayout> </relativelayout>
also in manifest.xml
added adjustresize
problem stays.... want when tap(focus) edittext
, keyboard shows, relativelayout
go see typing. , after keyboard hide resize relativelayout
again , relativelayout
go bottom of screen. in viber...
add line in activity tag inside manifest.xml file
android:windowsoftinputmode=adjustpan
for more can refer :android documentation
Comments
Post a Comment