android - EditText with attribute singline="true" doesn't moves up when keyboard appears -
reproduced on nexus 7 android 4.3
workflow:
- set focus edit text first time - keyboard appears, edittext visible;
- hide keyboard;
- set focdus edit text second time - keyboard appears, edittext doesn't moving up.
(edittext aligned on bottom of screen)
<?xml version="1.0" encoding="utf-8"?> <framelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <edittext android:id="@+id/edit_text" android:layout_gravity="bottom" android:gravity="center" android:singleline="true" android:imeoptions="actionsearch" android:layout_width="match_parent" android:layout_height="wrap_content"/> </framelayout> public class myactivity extends activity { @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); } }
i tried this: android:windowsoftinputmode="adjustpan" or adjustpan|adjustresize , effect.
anyone knows how resolve issue?
updates:
i figured out : problem in attribute android:singline="true"; attribute needed show search button, , start search after cliked on keyboard - otherwise shown enter button after clicking wich going next line.
q: activity using flag_fullscreen ?
a: yes. without flag still reproduced.
android:windowsoftinputmode="adjustresize"
Comments
Post a Comment