textView ниже EditText не отображается при отображении клавиатуры - PullRequest
0 голосов
/ 19 декабря 2018

У меня есть макет ограничения, который содержит EditText.Под этим EditText есть TextView.Когда я выбираю EditText, появляется клавиатура.Что здорово.Но textView под EditText скрыт под клавиатурой.Как показать TextView ниже меня EditText.Я уже пробовал android:windowSoftInputMode="adjustResize" and android:windowSoftInputMode="adjustPan"

Но ничего не помогает.Textview по-прежнему скрыто за клавиатурой.

Вот мой снимок моего макета

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
tools:ignore="MissingPrefix">

<include layout="@layout/toolbar" />
//other components

        <EditText
            android:id="@+id/registration_year"
            android:layout_width="80dp"
            android:layout_height="40dp"
            android:layout_marginTop="14dp"
            android:paddingStart="12dp"
            android:paddingEnd="12dp"
            android:inputType="number"
            android:lineSpacingExtra="10sp"
            android:maxLength="4"
            android:gravity="center_vertical"
            android:maxLines="1"
            android:textSize="14sp"
            android:textColor="@color/black"
          android:background="@drawable/details_number_background_selector" />

        <TextView
            android:id="@+id/date_format_info"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:lineSpacingExtra="10sp"
            android:text="@string/details_year_format_text"
            android:textColor="#666666"
            android:textSize="14sp"/>
 </LinearLayout>
...