0

When I try to fill in something in an EditText which is at the bottom of the screen, the Chinese keyboard hides the EditText. How should I resolve this problem? Below is my xml code and pictures.

<android.support.constraint.ConstraintLayout>
     <ScrollView>
         <LinearLayout>
             <EditText>
                 android:hint="Write down your opinion"
             </EditText>
         </LinearLayout>
     </ScrollView>
</android.support.constraint.ConstraintLayout>

following is my pics

enter image description here

enter image description here

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
張信加
  • 1
  • 1

1 Answers1

0
  • Remove your constraint layout

From this

<android.support.constraint.ConstraintLayout>
    <ScrollView>
        <LinearLayout>
              <EditText>

              </EditText>
        </LinearLayout>
     </ScrollView>
</android.support.constraint.ConstraintLayout>

To this

    <ScrollView>
        <LinearLayout>
              <EditText>

              </EditText>
        </LinearLayout>
     </ScrollView>
  • Thank you for your answer, but how if there are still other code within like below `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" tools:context=".ApprovalTodoContentActivity" android:background="#585A56">` – 張信加 Apr 09 '19 at 09:28