title: trying to align a view vertically to the edit text inside the inputlayout [see image] the helper text shifts the alignment
body: <p>just look how the OTP button seems to not be aligned properly. how do I fix that?</p>
  <p><a href="https://i.stack.imgur.com/DRWsS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DRWsS.png" alt="issue image" /></a></p>
  <p>I'm using material UI's outlined textfeild which also has a helper text. That adds to the height of the input layout. hence, this issue. I want the OTP button to be aligned perfectly besides the text field. is there a way to do that other than making the helper text into a textview? I also don't want to use margin on the button to align it because that can cause unexpected changes in different screen sizes. Here's the code -</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;com.google.android.material.card.MaterialCardView 
      xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_margin=&quot;@dimen/login_card_spacing&quot;
      app:cardBackgroundColor=&quot;#eeeeee&quot;
      app:cardCornerRadius=&quot;@dimen/login_card_spacing&quot;&gt;
  
      &lt;androidx.constraintlayout.widget.ConstraintLayout
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;&gt;
  
          &lt;TextView
              android:id=&quot;@+id/sign_up_label&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_margin=&quot;@dimen/login_card_spacing&quot;
              android:text=&quot;SIGN UP&quot;
              android:textSize=&quot;@dimen/huge_text_size&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintRight_toRightOf=&quot;parent&quot;
              app:layout_constraintTop_toTopOf=&quot;parent&quot; /&gt;
  
          &lt;com.google.android.material.textfield.TextInputLayout
              android:id=&quot;@+id/user_name_edit_text&quot;
              style=&quot;@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox&quot;
              android:layout_width=&quot;0dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_margin=&quot;@dimen/login_card_spacing&quot;
              android:hint=&quot;User Name&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintRight_toRightOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/sign_up_label&quot;&gt;
  
              &lt;com.google.android.material.textfield.TextInputEditText
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot; /&gt;
  
          &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
          &lt;com.google.android.material.textfield.TextInputLayout
              android:id=&quot;@+id/user_password_edit_text&quot;
              style=&quot;@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox&quot;
              android:layout_width=&quot;0dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_margin=&quot;@dimen/login_card_spacing&quot;
              android:hint=&quot;Set New User Password&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintRight_toRightOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/user_name_edit_text&quot;&gt;
  
              &lt;com.google.android.material.textfield.TextInputEditText
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot; /&gt;
  
          &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
          &lt;com.google.android.material.textfield.TextInputLayout
              android:id=&quot;@+id/user_phone_number_edit_text&quot;
              style=&quot;@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox&quot;
              android:layout_width=&quot;0dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_margin=&quot;@dimen/login_card_spacing&quot;
              android:hint=&quot;Phone Number&quot;
              app:layout_constraintLeft_toLeftOf=&quot;parent&quot;
              app:layout_constraintRight_toRightOf=&quot;parent&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/user_password_edit_text&quot;&gt;
  
              &lt;com.google.android.material.textfield.TextInputEditText
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot; /&gt;
  
          &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
          &lt;com.google.android.material.textfield.TextInputLayout
              android:id=&quot;@+id/user_otp_edit_text&quot;
              style=&quot;@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox&quot;
              android:layout_width=&quot;0dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_marginTop=&quot;@dimen/login_card_spacing&quot;
              android:layout_marginEnd=&quot;@dimen/login_card_spacing&quot;
              android:hint=&quot;OTP Generated&quot;
              app:helperText=&quot;Check Message Box For The Entered Phone Number&quot;
              app:layout_constraintLeft_toLeftOf=&quot;@id/user_name_edit_text&quot;
              app:layout_constraintRight_toLeftOf=&quot;@id/otp_generator&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/user_phone_number_edit_text&quot;&gt;
  
              &lt;com.google.android.material.textfield.TextInputEditText
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot; /&gt;
  
          &lt;/com.google.android.material.textfield.TextInputLayout&gt;
          
          &lt;Button
              android:id=&quot;@+id/otp_generator&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:text=&quot;otp&quot;
              app:layout_constraintBottom_toBottomOf=&quot;@id/user_otp_edit_text&quot;
              app:layout_constraintRight_toRightOf=&quot;@id/user_name_edit_text&quot;
              app:layout_constraintTop_toTopOf=&quot;@id/user_otp_edit_text&quot; /&gt;
  
          &lt;Button
              android:id=&quot;@+id/cancel_login&quot;
              android:layout_width=&quot;0dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_marginVertical=&quot;@dimen/login_card_spacing&quot;
              android:layout_marginEnd=&quot;@dimen/login_card_spacing&quot;
              android:text=&quot;cancel&quot;
              style=&quot;?attr/materialButtonOutlinedStyle&quot;
              app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
              app:layout_constraintLeft_toLeftOf=&quot;@id/user_name_edit_text&quot;
              app:layout_constraintRight_toLeftOf=&quot;@id/register_login&quot;
              app:layout_constraintTop_toBottomOf=&quot;@id/user_otp_edit_text&quot; /&gt;
  
          &lt;Button
              android:id=&quot;@+id/register_login&quot;
              android:layout_width=&quot;0dp&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_marginStart=&quot;@dimen/login_card_spacing&quot;
              android:text=&quot;register&quot;
              app:layout_constraintBottom_toBottomOf=&quot;@id/cancel_login&quot;
              app:layout_constraintLeft_toRightOf=&quot;@id/cancel_login&quot;
              app:layout_constraintRight_toRightOf=&quot;@id/user_name_edit_text&quot;
              app:layout_constraintTop_toTopOf=&quot;@id/cancel_login&quot; /&gt;
      &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  
  &lt;/com.google.android.material.card.MaterialCardView&gt;
  </code></pre>