Tôi có phần tử scrollview gốc với relativelayout trong đó và một loạt các phần tử biểu mẫu bên trong bố cục tương đối.Android ScrollView từ chối di chuyển xuống dưới cùng
Vì lý do nào đó, khi bàn phím mềm lên, có vẻ như không thể cuộn hết cỡ xuống dưới, điều này làm giảm một nửa các nút của tôi.
Đây là ảnh chụp màn hình của trình xem phân cấp để minh họa ý tôi.
Như bạn có thể thấy, hệ thống biết rằng quan điểm tiếp tục qua bàn phím, nhưng các scrollview (mà lấp đầy phần nhìn thấy được của màn hình một cách chính xác) sẽ không tiếp tục di chuyển xuống như mong muốn.
Tôi có android:windowSoftInputMode="adjustResize"
trong tệp kê khai cho hoạt động và tôi có thể/sẽ không chuyển sang chế độ xoay.
Mọi trợ giúp đều được đánh giá cao.
chỉnh sửa: Tôi thấy điều này trong hơn 1 chế độ xem. Đây là xml của người khác nhìn với cùng một vấn đề:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/background" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="32dp" >
<EditText
android:id="@+id/reset_oldpass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:ems="10"
android:singleLine="true"
android:hint="@string/current_password"
android:layout_marginTop="16dp" />
<EditText
android:id="@+id/reset_pass1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/reset_oldpass"
android:ems="10"
android:hint="@string/reset_new_pass"
android:inputType="textPassword"
android:layout_marginTop="16dp" />
<EditText
android:id="@+id/reset_pass2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/reset_pass1"
android:ems="10"
android:hint="@string/reset_confirm_pass"
android:inputType="textPassword"
android:layout_marginTop="16dp" />
<TextView
android:id="@+id/reset_forgot_password"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_below="@+id/reset_pass2"
android:layout_marginTop="16dp"
android:textColor="@color/Link"
android:textStyle="bold"
android:text="@string/Login_forgot_password" />
<Button
android:id="@+id/reset_reset_password_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/reset_forgot_password"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:layout_marginBottom="32dp"
android:text="@string/reset_change_pass" />
</RelativeLayout>
</ScrollView>
Điều này cũng xảy ra với 'LinearLayout'. Cảm ơn bạn đã cung cấp chủ đề này! – avalancha