当键盘出现在Android上时,如何防止EditText自动滚动?
即使我是否放置了scrollview,当我的编辑文本请求焦点和键盘出现时,我的视图也会自动滚动到顶部一点。它打破了我的设计。我必须防止这种情况 你能帮我吗?加上这个当键盘出现在Android上时,如何防止EditText自动滚动?,android,android-edittext,scrollview,Android,Android Edittext,Scrollview,即使我是否放置了scrollview,当我的编辑文本请求焦点和键盘出现时,我的视图也会自动滚动到顶部一点。它打破了我的设计。我必须防止这种情况 你能帮我吗?加上这个 android:windowSoftInputMode="adjustPan" android:isScrollContainer="false" 在清单文件中添加此 android:windowSoftInputMode="adjustPan" android:isScrollContainer="fals
android:windowSoftInputMode="adjustPan"
android:isScrollContainer="false"
在清单文件中添加此
android:windowSoftInputMode="adjustPan"
android:isScrollContainer="false"
在清单文件中将这一行添加到Manifext.xml的活动标记下,并确保活动不能使用android:theme=“@android:style/theme.Black.NoTitleBar.Fullscreen”
android:windowSoftInputMode="adjustResize"
请尝试一下,如果你仍然有问题,请告诉我你的意见 在Manifext.xml的活动标签下添加这一行,并确保活动不能使用android:theme=“@android:style/theme.Black.NoTitleBar.Fullscreen”
android:windowSoftInputMode="adjustResize"
请尝试一下,如果你仍然有问题,请告诉我你的意见