title: Cannot place TextInputEditText on Top of TextInput Layout. AndroidStudio
body: <p>So I ran into a problem where I was trying to convert my EditText into TextInputEditText under TextInputLayout from com.google.material library.</p>
  <p>I am not able to place my TextInputEdit Text On top of TextInputLayout
  Here is a screeenshot.
  <img src="https://i.stack.imgur.com/FB9si.png" alt="Click Here For Screenshot" /></p>
  <p>As you can see it is a bit off from both the top and left.</p>
  <p>login.xml</p>
  <pre><code>    &lt;com.google.android.material.textfield.TextInputLayout
  
      android:layout_width=&quot;210dp&quot;
      android:layout_height=&quot;53dp&quot;
      android:layout_alignParentEnd=&quot;true&quot;
      android:layout_alignParentBottom=&quot;true&quot;
      android:background=&quot;@drawable/roundedittext&quot;
      android:ems=&quot;10&quot;
      android:hint=&quot;  Email&quot;
      android:importantForAutofill=&quot;no&quot;
      android:inputType=&quot;textEmailAddress&quot;
      android:padding=&quot;5dp&quot;
      app:errorEnabled=&quot;true&quot;
      tools:layout_editor_absoluteX=&quot;101dp&quot;
      tools:layout_editor_absoluteY=&quot;366dp&quot;&gt;
  
      &lt;com.google.android.material.textfield.TextInputEditText
          android:id=&quot;@+id/signupemailfeild&quot;
          android:layout_width=&quot;210dp&quot;
          android:layout_height=&quot;47dp&quot; /&gt;
  
  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
  
  
  &lt;com.google.android.material.textfield.TextInputLayout
      android:layout_width=&quot;210dp&quot;
      android:layout_height=&quot;47dp&quot;
      android:layout_alignParentStart=&quot;true&quot;
      android:layout_alignParentTop=&quot;true&quot;
      android:background=&quot;@drawable/roundedittext&quot;
      android:ems=&quot;10&quot;
      android:hint=&quot;  Password&quot;
      android:importantForAutofill=&quot;no&quot;
      android:inputType=&quot;textPassword&quot;
      android:padding=&quot;5dp&quot;
      app:errorEnabled=&quot;true&quot;
      app:passwordToggleEnabled=&quot;true&quot;
      tools:layout_editor_absoluteX=&quot;101dp&quot;
      tools:layout_editor_absoluteY=&quot;444dp&quot;&gt;
  
      &lt;com.google.android.material.textfield.TextInputEditText
          android:id=&quot;@+id/signuppasswordfeild&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;47dp&quot;
          android:hint=&quot;Password&quot;
          android:inputType=&quot;textPassword&quot;
          tools:layout_editor_absoluteX=&quot;match_parent&quot;
          tools:layout_editor_absoluteY=&quot;match_parent&quot; /&gt;
  
  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  </code></pre>
  <p>build.gradle(app:module)</p>
  <pre><code>dependencies {
      implementation fileTree(dir: &quot;libs&quot;, include: [&quot;*.jar&quot;])
      implementation 'androidx.appcompat:appcompat:1.1.0'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
      implementation 'com.google.android.material:material:1.0.0'
      implementation 'androidx.annotation:annotation:1.1.0'
      implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
      implementation 'com.google.firebase:firebase-auth:19.3.1'
      implementation 'com.google.firebase:firebase-database:19.3.1'
      implementation 'androidx.legacy:legacy-support-v4:1.0.0'
      implementation 'androidx.navigation:navigation-fragment:2.3.0'
      implementation 'androidx.navigation:navigation-ui:2.3.0'
      implementation 'com.github.castorflex.smoothprogressbar:library:1.0.0'
      implementation 'com.google.android.material:material:1.0.0'
      implementation 'androidx.mediarouter:mediarouter:1.1.0'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'androidx.test.ext:junit:1.1.1'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
      implementation 'com.google.firebase:firebase-analytics:17.2.2'
  }
  </code></pre>
  <p>Update:- Fixed the X-axis Offset Now the problem is only with Y-axis Offset.
  <a href="https://i.stack.imgur.com/FB9si.png" rel="nofollow noreferrer">Click Here For New Screenshot</a></p>