Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 将编辑文本置于软件键盘延迟之上_Android_Keyboard_Android Edittext_Window Soft Input Mode - Fatal编程技术网

Android 将编辑文本置于软件键盘延迟之上

Android 将编辑文本置于软件键盘延迟之上,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

我有一个edittext,当它打开时,它成功地定位在软件键盘上方。问题是当键盘打开时,键盘是可见的,大约2秒钟后,edittext被定位。如何使在键盘打开之前显示在页面底部的edittext在键盘向上的情况下设置动画?

在edittext的父容器中使用ScrollView

<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"