title: I want to footer stayed behind keyboard on adjustResize screen
body: <p>Hi guys I have login page with editText, two buttons and fixed footer below the screen. I want to whenever user will be in the editText after softKeyboard activated editText and buttons should be scrollable and footer stayed behind keyboard.  I set  <strong>android:windowSoftInputMode=&quot;adjustResize&quot;</strong> in activity but in this case footer also is below the keyboard. what should I do to make footer behind the keyboard?</p>
  <p>XML</p>
  <pre><code>&lt;layout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;&gt;
  
      &lt;data&gt;
          &lt;variable
              name=&quot;authViewModel&quot;
              type=&quot;com.example.footer.MainActivity&quot;/&gt;
      &lt;/data&gt;
  
  
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          tools:context=&quot;.auth.AuthFragment&quot;&gt;
  
          &lt;androidx.core.widget.NestedScrollView
              android:id=&quot;@+id/scroll&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              app:layout_constraintBottom_toTopOf=&quot;@id/footer&quot;&gt;
  
              &lt;androidx.constraintlayout.widget.ConstraintLayout
                  android:id=&quot;@+id/authConstraint&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;match_parent&quot;
                  android:windowSoftInputMode=&quot;adjustResize&quot;&gt;
  
  
                  &lt;com.google.android.material.textfield.TextInputLayout
                      android:id=&quot;@+id/usernameInputLayout&quot;
                      android:layout_width=&quot;384dp&quot;
                      android:layout_height=&quot;75dp&quot;
                      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
                      app:layout_constraintHorizontal_bias=&quot;0.0&quot;
                      app:layout_constraintStart_toStartOf=&quot;parent&quot;
                      app:layout_constraintTop_toTopOf=&quot;parent&quot;&gt;
  
                      &lt;com.google.android.material.textfield.TextInputEditText
                          android:id=&quot;@+id/usernameInputEditText&quot;
                          android:layout_width=&quot;match_parent&quot;
                          android:layout_height=&quot;wrap_content&quot;
                          android:background=&quot;#00000000&quot;
                          android:textAlignment=&quot;center&quot;
                          android:textColorHint=&quot;@color/white&quot;
                          android:textSize=&quot;30sp&quot; /&gt;
                  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
                  &lt;com.google.android.material.button.MaterialButton
                      android:id=&quot;@+id/uSubmit&quot;
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;70dp&quot;
                      android:text=&quot;SIGNUP&quot;
                      android:textSize=&quot;30sp&quot;
                      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
                      app:layout_constraintHorizontal_bias=&quot;1.0&quot;
                      app:layout_constraintStart_toStartOf=&quot;parent&quot;
                      app:layout_constraintTop_toBottomOf=&quot;@+id/usernameInputLayout&quot; /&gt;
  
                  &lt;com.google.android.material.button.MaterialButton
                      android:id=&quot;@+id/uRegistration&quot;
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;70dp&quot;
                      android:backgroundTint=&quot;#2C2C2E&quot;
                      android:text=&quot;SIGNIN&quot;
                      android:textSize=&quot;30sp&quot;
                      app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
                      app:layout_constraintEnd_toEndOf=&quot;@+id/uSubmit&quot;
                      app:layout_constraintStart_toStartOf=&quot;@+id/uSubmit&quot;
                      app:layout_constraintTop_toBottomOf=&quot;@+id/uSubmit&quot; /&gt;
              &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
          &lt;/androidx.core.widget.NestedScrollView&gt;
  
          &lt;FrameLayout
              android:id=&quot;@+id/footer&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;70dp&quot;
              android:background=&quot;@color/black&quot;
              app:layout_constraintBottom_toBottomOf=&quot;@+id/scroll&quot;
              app:layout_constraintEnd_toEndOf=&quot;parent&quot;
              app:layout_constraintStart_toStartOf=&quot;parent&quot;&gt;
  
              &lt;androidx.constraintlayout.widget.ConstraintLayout
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;match_parent&quot;&gt;
                  &lt;TextView
                      android:layout_width=&quot;358dp&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
                      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
                      app:layout_constraintStart_toStartOf=&quot;parent&quot;
                      app:layout_constraintTop_toTopOf=&quot;parent&quot;&gt;&lt;/TextView&gt;
              &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
          &lt;/FrameLayout&gt;
  
  
      &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  &lt;/layout&gt;
  </code></pre>
  <p><a href="https://im7.ezgif.com/tmp/ezgif-7-39bac792253c.gif" rel="nofollow noreferrer">https://im7.ezgif.com/tmp/ezgif-7-39bac792253c.gif</a></p>