title: In Android, AutoCompleteTextView is not centered while using Exposed Dropdown Menus in Material Design Component
body: <p>In newly published Material Design Component, there is no Spinner component. That's why I want to use <a href="https://material.io/develop/android/components/menu/#exposed-dropdown-menus" rel="nofollow noreferrer">Exposed Dropdown Menus</a> to implement something similar like Spinner. The Problem I am facing is AutoCompleteTextView is not aligned in center compare to the endIconDrawable. My Code is given bellow</p>
  
  <p><a href="https://i.stack.imgur.com/Gxwhw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gxwhw.jpg" alt="enter image description here"></a>
  <code>activity.main.xml</code></p>
  
  <pre><code>&lt;com.google.android.material.textfield.TextInputLayout
          style="@style/OutLinedEditTextStyle.Spinner"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:hint="Select Country"
          android:layout_margin="@dimen/_10sdp"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintHorizontal_bias="0.578"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toBottomOf="@+id/materialToolbar"
          app:layout_constraintVertical_bias="0.0"&gt;
  
          &lt;AutoCompleteTextView
              android:id="@+id/filled_exposed_dropdown"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:completionThreshold="1"
              android:dropDownVerticalOffset="@dimen/_5sdp"/&gt;
  
      &lt;/com.google.android.material.textfield.TextInputLayout&gt;
  </code></pre>
  
  <p><code>style.xml</code></p>
  
  <pre><code>&lt;resources xmlns:tools="http://schemas.android.com/tools"&gt;
      &lt;style name="OutLinedEditTextStyle" parent="Widget.MaterialComponents.TextInputLayout.OutlinedBox"&gt;
          &lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt;
          &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
  
          &lt;item name="boxBackgroundMode"&gt;outline&lt;/item&gt;
          &lt;item name="boxBackgroundColor"&gt;@color/colorWindowBackground&lt;/item&gt;
  
          &lt;item name="boxStrokeColor"&gt;@color/colorTextPrimary&lt;/item&gt;
          &lt;item name="boxStrokeErrorColor"&gt;@color/red&lt;/item&gt;
          &lt;item name="boxStrokeWidth"&gt;@dimen/_2sdp&lt;/item&gt;
          &lt;item name="boxStrokeWidthFocused"&gt;@dimen/_2sdp&lt;/item&gt;
  
          &lt;item name="errorTextColor"&gt;@color/red&lt;/item&gt;
          &lt;item name="errorEnabled"&gt;true&lt;/item&gt;
  
          &lt;item name="hintEnabled"&gt;true&lt;/item&gt;
          &lt;item name="hintTextColor"&gt;@color/colorTextPrimary&lt;/item&gt;
          &lt;item name="android:textColorHint"&gt;@color/colorTextSecondary&lt;/item&gt;
  
      &lt;/style&gt;
  
  
      &lt;style name="OutLinedEditTextStyle.Spinner"&gt;
          &lt;item name="materialThemeOverlay"&gt;@style/ThemeOverlay.MaterialComponents.AutoCompleteTextView.FilledBox&lt;/item&gt;
          &lt;item name="endIconMode"&gt;custom&lt;/item&gt;
          &lt;item name="endIconDrawable"&gt;@drawable/ic_download&lt;/item&gt;
          &lt;item name="endIconContentDescription"&gt;Drop down&lt;/item&gt;
      &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>