title: Android: TextInputLayout with one Edit Text and spinner
body: <p>I want to create a layout like this:
  <a href="https://i.stack.imgur.com/aWjR5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aWjR5.png" alt="enter image description here"></a></p>
  
  <p>I want to add a spinner in TextInputLayout and show the hint of TextInputEditText like this.</p>
  
  <p>I tried making custom TextInputLayout but still not able to add a spinner to it.</p>
  
  <p>I have added TextInputLayout like this with outlined view:-</p>
  
  <pre><code>&lt;com.google.android.material.textfield.TextInputLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="8dp"
          android:layout_marginStart="8dp"
          android:layout_marginEnd="8dp"
          android:textColorHint="@color/colorGreyView"
          android:textSize="20dp"
          style="@style/Widget.MaterialComponents.Button.OutlinedButton"&gt;
          &lt;com.google.android.material.textfield.TextInputEditText
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:hint="Mobile Number"/&gt;
      &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  </code></pre>