Check how ugly it is:

Here is my XML:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="20dp"
android:descendantFocusability="beforeDescendants"
android:focusableInTouchMode="true">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:text="Style"
android:textSize="18sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Position" />
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/array_positions"
android:layout_marginBottom="20dp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Icon Color" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:text="red"/>
</LinearLayout>
How do I make spinner and edittext always look the same? I even tried adding style="@style/Widget.AppCompat.Spinner.Underlined"
to the counter, and while it adds the bottom line, the size of the indents and fonts is still different.
source
share