title: Why the keyboard covers part of an EditText
body: <p>I know this question has been asked many times and if I'm doing it again is just because is not exactly the same question. I have already added this to my activity in the Manifest:</p>
  
  <pre><code>android:windowSoftInputMode="stateAlwaysHidden|adjustPan"
  </code></pre>
  
  <p>And also I have tried using a <code>ScrollView</code>. As a result, the EditText is correctly moving up when the keyboard appears. However, I have noticed that it still covers a part of the TextView. It is not enough to cover the text but it still seems wrong:</p>
  
  <p><a href="https://i.stack.imgur.com/1fgPX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1fgPX.png" alt="enter image description here"></a></p>
  
  <p>The code to add the TextView is pretty normal:</p>
  
  <pre><code>    &lt;LinearLayout
          android:id="@+id/login_layout"
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:layout_weight="50dp"
          android:gravity="center_vertical"
          android:orientation="vertical"&gt;
  
  
          &lt;EditText
              android:id="@+id/user"
              android:layout_width="match_parent"
              android:layout_height="40dp"
              android:layout_marginLeft="16dp"
              android:layout_marginRight="16dp"
              android:layout_marginTop="100dp"
              android:background="@drawable/edit_text_background"
              android:hint="@string/prompt_email"
              android:inputType="text"
              android:maxLines="1"
              android:textSize="15sp" /&gt;
  </code></pre>
  
  <p>So, do you know a way to keep all the TextView above the keyboard? I have only seen this question <a href="https://stackoverflow.com/questions/35652116/keyboard-covering-part-of-edittext">once</a> but it was not resolved and the guy was using a Fragment, not an Activity.</p>
  
  <p>Thanks</p>