title: Is it possible to implement Exposed Dropdown Menus using an spinner
body: <p>Material design has an Exposed Dropdown Menu implemented with a <code>AutoCompleteTextView</code> like this:</p>
  <pre><code>&lt;com.google.android.material.textfield.TextInputLayout
      style=&quot;@style/Widget.MaterialComponents.TextInputLayout.FilledBox.ExposedDropdownMenu&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:hint=&quot;@string/hint_text&quot;&gt;
  
    &lt;AutoCompleteTextView
        android:id=&quot;@+id/filled_exposed_dropdown&quot;
        android:layout_width=&quot;match_parent&quot;
        android:layout_height=&quot;wrap_content&quot;/&gt;
  
  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  </code></pre>
  <p>But I need to have the same look an feel but with the spinner behavior (Without autocomplete, just display popup and select an item).</p>
  <p>I disabled editing on AutoCompleteTextView  to avoid to use the auto complete, but after selecting one of the item then the autocomplete just list the items that matches the item text selected given a filter that is used in this view. This is the code:</p>
  <pre><code>    &lt;AutoCompleteTextView
              android:id=&quot;@+id/filled_exposed_dropdown&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              android:layout_margin=&quot;16dp&quot;
              **android:editable=&quot;false&quot;**/&gt;
  </code></pre>
  <p>Also I put a listener to open items list when click on it</p>
  <pre><code>val editTextFilledExposedDropdown = findViewById&lt;AutoCompleteTextView&gt;(R.id.filled_exposed_dropdown)
      editTextFilledExposedDropdown.setAdapter(adapter)
      editTextFilledExposedDropdown.setOnClickListener {
          (it as AutoCompleteTextView).showDropDown()
  }
  </code></pre>
  <p>So, I would want to know if it is possible to implement this but with a spinner</p>
  <p><a href="https://i.stack.imgur.com/ZwNU9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZwNU9.png" alt="enter image description here" /></a></p>
  <p>This was my attempt using a spinner, but it not display the style correctly <code>OutlinedBox.Dense.ExposedDropdownMenu</code> and also display two arrow bottom icon, I think one for the style and another for the spinner.</p>
  <p>this was the code with the spinner:</p>
  <pre><code>&lt;com.google.android.material.textfield.TextInputLayout
          style=&quot;@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:hint=&quot;Hint&quot;&gt;
      &lt;com.google.android.material.textfield.TextInputEditText
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;/&gt;
  
  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  
  
  &lt;com.google.android.material.textfield.TextInputLayout
          android:id=&quot;@+id/layout_id&quot;
          style=&quot;@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense.ExposedDropdownMenu&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:hint=&quot;Currency&quot;&gt;
      &lt;androidx.appcompat.widget.AppCompatSpinner
              android:id=&quot;@+id/my_spinner&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;/&gt;
  
  &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  </code></pre>