我有一些领域的视图(姓名,电子邮件,密码,注册按钮):如何在键盘出现时使android视图滚动?
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ViewFlipper
android:id="@+id/viewflipper"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
//Layouts
</ViewFlipper>
</ScrollView>
当我专注一个EditText场,键盘出现并覆盖在视图下方区域。所以当键盘出现时我看不到它们。我想知道如何使视图滚动,以便我可以看到较低的字段。此外,如何自动滚动视图以使焦点字段可见。
实际上它被设置为“adjustPan | adjustResize”。取下adjustPan使其工作。谢谢! – Alexis