Android 焦点键盘在某一行后与文本视图重叠

Android 焦点键盘在某一行后与文本视图重叠,android,android-edittext,android-softkeyboard,Android,Android Edittext,Android Softkeyboard,我的观点有问题。我有一个文本视图和一个带有图像视图的线性布局。线性布局具有一个名为 android:fitsSystemWindows="true" 我的活动已启用 android:windowSoftInputMode="adjustResize" 因此,当焦点键盘处于上方时,具有该图像视图的线性布局将保持在焦点键盘上方,否则将保持在底部。 问题是,每当我键入4行或5行时,编辑文本的光标就会被线性布局阻止。虽然我能够键入它,但我需要向下滚动以查看我的

我的观点有问题。我有一个文本视图和一个带有图像视图的线性布局。线性布局具有一个名为

android:fitsSystemWindows="true"
我的活动已启用

android:windowSoftInputMode="adjustResize"
因此,当焦点键盘处于上方时,具有该图像视图的线性布局将保持在焦点键盘上方,否则将保持在底部。 问题是,每当我键入4行或5行时,编辑文本的光标就会被线性布局阻止。虽然我能够键入它,但我需要向下滚动以查看我的文本和光标

我的xml代码如下:

 <androidx.appcompat.widget.AppCompatEditText
            android:id="@+id/edtAnswer"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginStart="@dimen/fifteen_margin"
            android:layout_marginTop="@dimen/ten_margin"
            android:background="@android:color/transparent"
            android:hint="@string/add_answer"
            android:inputType="textCapSentences|textMultiLine|text"
            android:textColor="@color/text_hint"
            app:backgroundTint="@color/edit_text_color" />



<LinearLayout
    android:id="@+id/llChooser"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/white"
    android:fitsSystemWindows="true"
    android:orientation="vertical"
    android:padding="10dp"
    android:windowSoftInputMode="adjustResize"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintStart_toStartOf="parent">

    <ImageView
        android:id="@+id/ivAnswerImage"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:contentDescription="@string/content_desc_image"
        android:src="@drawable/ic_choose_photo" />
</LinearLayout>

谁能帮帮我吗?每当我更改行时,我需要光标和文本都可见