title: EditText inside TextInputLayout leaves empty space at the top
body: <p>I have password field and i wanted to implement hide/show password functionality. So I used TextInputLayout. But if I use EditText inside TextInputLayout, it leaves empty space at the top of the layout. And I need to have height of that password field smaller. With that gap there, it's not possible. 
  I've tried to set height to negative value for EditText, but it did not work.
  android:layout_height="45dp" is used to make that field smaller, but it doesnt work at all. wrap_content makes it even taller.</p>
  
  <pre><code>    &lt;android.support.design.widget.TextInputLayout
              android:id="@+id/textInputLayout"
              android:layout_width="match_parent"
              android:layout_height="45dp"
              android:layout_marginEnd="45dp"
              android:layout_marginStart="42dp"
              app:passwordToggleDrawable="@drawable/login_password_eye"
              app:passwordToggleEnabled="true"&gt;
  
              &lt;EditText
                  android:id="@+id/passwordTextField"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:backgroundTint="@color/colorDivider"
                  android:imeOptions="actionDone"
                  android:inputType="textPassword"
                  android:singleLine="true"
                  android:textColor="@color/colorItemMajor"
                  android:textSize="16sp" /&gt;
  
       &lt;/android.support.design.widget.TextInputLayout&gt;
  </code></pre>
  
  <p>Image:</p>
  
  <p><a href="https://i.stack.imgur.com/eoRes.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eoRes.jpg" alt="enter image description here"></a></p>
  
  <p>XML Code - full (i had to remove colors and images + top toolbar, but logic is same)</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/mainLoginLayout"
      android:orientation="vertical"
      android:clickable="true"
      android:focusableInTouchMode="true"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;LinearLayout
          android:id="@+id/loginLayout"
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;ImageView
              android:id="@+id/imageLogin"
              android:layout_width="210dp"
              android:layout_height="210dp"
              android:layout_gravity="center"
              android:scaleType="fitCenter"
              android:src="@mipmap/ic_launcher" /&gt;
  
          &lt;TextView
              android:id="@+id/emailLabel"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="E-mail"
              android:textColor="@color/colorBlack"
              android:textSize="16sp"
              android:layout_marginStart="45dp"
              android:layout_marginEnd="45dp"
              /&gt;
  
          &lt;EditText
              android:id="@+id/emailTextField"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginEnd="45dp"
              android:layout_marginStart="45dp"
              android:backgroundTint="@color/colorBlack"
              android:inputType="textEmailAddress"
              android:textColor="@color/colorBlack"
              android:textSize="16sp" /&gt;
  
          &lt;TextView
              android:id="@+id/passwordLabel"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Password"
              android:textColor="@color/colorBlack"
              android:textSize="16sp"
              android:layout_marginStart="45dp"
              android:layout_marginEnd="45dp"
              /&gt;
  
          &lt;android.support.design.widget.TextInputLayout
              android:id="@+id/textInputLayout"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginEnd="@dimen/login_password_padding"
              android:layout_marginStart="@dimen/login_password_field_padding"
              app:passwordToggleDrawable="@drawable/login_password_eye"
              app:passwordToggleEnabled="true"
              app:passwordToggleTint="@android:color/black"&gt;
  
              &lt;android.support.design.widget.TextInputEditText
                  android:id="@+id/passwordTextField"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="0dp"
                  android:backgroundTint="@color/colorDivider"
                  android:imeOptions="actionDone"
                  android:inputType="textPassword"
                  android:singleLine="true"
                  android:textColor="@color/colorItemMajor"
                  android:textSize="@dimen/login_password_label_textsize" /&gt;
  
          &lt;/android.support.design.widget.TextInputLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/default_login_button"
              android:layout_width="match_parent"
              android:orientation="horizontal"
              android:gravity="center"
              android:clickable="true"
              android:focusable="true"
              android:layout_height="55dp"
              android:layout_marginStart="45dp"
              android:layout_marginEnd="45dp"
              android:layout_marginTop="45dp"
              android:background="@color/colorBlack"&gt;
  
              &lt;ImageView
                  android:id="@+id/loginButtonIcon"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center|center_horizontal"
                  android:src="@mipmap/ic_launcher" /&gt;
  
              &lt;TextView
                  android:id="@+id/LoginButtonLabel"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center|center_horizontal"
                  android:text="Login"
                  android:textAppearance="@style/FilledLoginButtonTextAppearance" /&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>