Android 将编辑文本置于软件键盘延迟之上
我有一个edittext,当它打开时,它成功地定位在软件键盘上方。问题是当键盘打开时,键盘是可见的,大约2秒钟后,edittext被定位。如何使在键盘打开之前显示在页面底部的edittext在键盘向上的情况下设置动画?在edittext的父容器中使用ScrollViewAndroid 将编辑文本置于软件键盘延迟之上,android,keyboard,android-edittext,window-soft-input-mode,Android,Keyboard,Android Edittext,Window Soft Input Mode,我有一个edittext,当它打开时,它成功地定位在软件键盘上方。问题是当键盘打开时,键盘是可见的,大约2秒钟后,edittext被定位。如何使在键盘打开之前显示在页面底部的edittext在键盘向上的情况下设置动画?在edittext的父容器中使用ScrollView <ScrollView android:layout_width="match_parent" android:layout_height="match_parent"> &l
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</LinearLayout>
</ScrollView>
android:configChanges="keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="stateHidden|adjustResize"