title: Android - TextInputLayout doesn't wrap hint of TextInputEditText
body: <p>I have a simple <code>TextInputEditText</code> nested in <code>TextTnputLayout</code>.</p>
  
  <p>I am trying to make the of <code>TIL</code> to be as long as the hint given in <code>TIET</code>.</p>
  
  <pre><code>&lt;android.support.design.widget.TextInputLayout
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"&gt;
  
      &lt;android.support.design.widget.TextInputEditText
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:hint="This is a hint"/&gt;
  
  &lt;/android.support.design.widget.TextInputLayout&gt;
  </code></pre>
  
  <p>But the problem is, it doesn't show anything
  <a href="https://i.stack.imgur.com/p6paw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p6paw.png" alt="Nothing"></a></p>
  
  <p>I have to set <code>TIL</code>'s width to <code>match_parent</code> or just any other width other than <code>wrap_content</code>. But I want to the width to be dynamic as in, the width of <code>TIL</code> follows the length of the hint provided. Is it possible? If yes, how to do that?</p>
  
  <p>I am using support library version <code>26.0.2</code> btw.</p>
  
  <p>Yvette Colomb's answer is close, the <code>TIL</code> wraps the <code>TIET</code> but the fancy animation doesn't work there. It might be because the animation won't start if hints are set in execution?</p>