title: Constrain Layout top views get disturbed when keyboard gets opened guideline percent does not works
body: <p>I tried windowSoftInputMode in manifest nothing worked the views get pushed up when the keyboard is opened I tried different approaches but none of them worked. The recycler view collapses with the edit text but it is below the guide line separator.  </p>
  
  <p>Image when keyboard is opened: </p>
  
  <p><a href="https://i.stack.imgur.com/2OvR0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2OvR0.png" alt="enter image description here"></a></p>
  
  <p>Image when the keyboard is not opened:</p>
  
  <p><a href="https://i.stack.imgur.com/llHXR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/llHXR.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/bg_color_for_screen"&gt;
      &lt;!--Guide line left--&gt;
      &lt;androidx.constraintlayout.widget.Guideline
          android:id="@+id/guide_line_left"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          app:layout_constraintGuide_begin="@dimen/padding_margin_15" /&gt;
      &lt;!--Guide line right--&gt;
      &lt;androidx.constraintlayout.widget.Guideline
          android:id="@+id/guide_line_right"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          app:layout_constraintGuide_end="@dimen/padding_margin_15" /&gt;
      &lt;!--Guide line for separating image--&gt;
      &lt;androidx.constraintlayout.widget.Guideline
          android:id="@+id/guide_line_separator"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          app:layout_constraintGuide_percent="0.17" /&gt;
      &lt;!--Image for the top header--&gt;
      &lt;androidx.appcompat.widget.AppCompatImageView
          android:layout_width="match_parent"
          android:layout_height="0dp"
          android:scaleType="centerCrop"
          app:layout_constraintBottom_toTopOf="@+id/guide_line_separator"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"
          app:srcCompat="@mipmap/splash_bg" /&gt;
      &lt;!--back button image--&gt;
      &lt;ImageView
          android:id="@+id/step_back_button"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginTop="@dimen/padding_margin_15"
          android:scaleType="centerCrop"
          android:src="@mipmap/ic_back_arrow"
          android:tint="@color/white"
          android:visibility="visible"
          app:layout_constraintStart_toStartOf="@id/guide_line_left"
          app:layout_constraintTop_toTopOf="parent" /&gt;
      &lt;!--title for the screen--&gt;
      &lt;androidx.appcompat.widget.AppCompatTextView
          android:id="@+id/label"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginStart="@dimen/padding_margin_10"
          android:layout_marginLeft="@dimen/padding_margin_5"
          android:layout_marginTop="@dimen/padding_margin_18"
          android:fontFamily="@font/nunito_medium"
          android:text="@string/blank"
          android:textColor="@color/white"
          android:textSize="@dimen/text_size_18"
          app:layout_constraintStart_toEndOf="@+id/step_back_button"
          app:layout_constraintTop_toTopOf="parent" /&gt;
      &lt;!--edit text for searching by the keyword--&gt;
      &lt;androidx.appcompat.widget.AppCompatEditText
          android:id="@+id/edit_text_search"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginStart="@dimen/padding_margin_10"
          android:layout_marginTop="@dimen/padding_margin_12"
          android:background="@drawable/edit_text_background"
          android:drawableStart="@mipmap/ic_search"
          android:drawablePadding="@dimen/padding_margin_8"
          android:fontFamily="@font/nunito_regular"
          android:hint="@string/blank"
          android:padding="@dimen/padding_margin_10"
          android:textSize="@dimen/text_size_15"
          app:layout_constraintEnd_toStartOf="@+id/guide_line_right"
          app:layout_constraintStart_toStartOf="@id/guide_line_left"
          app:layout_constraintTop_toBottomOf="@+id/label" /&gt;
      &lt;!--recycler view for the list --&gt;
      &lt;androidx.recyclerview.widget.RecyclerView
          android:id="@+id/recycler_view"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:layout_marginTop="@dimen/padding_margin_5"
          android:layout_marginBottom="@dimen/padding_margin_5"
          android:background="@color/transparent"
          android:visibility="visible"
          app:layout_constraintBottom_toTopOf="parent"
          app:layout_constraintEnd_toEndOf="@id/guide_line_right"
          app:layout_constraintStart_toStartOf="@id/guide_line_left"
          app:layout_constraintTop_toBottomOf="@+id/guide_line_separator" /&gt;
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>