Hello I am making demo application in which i am using EditText
in which a line appears at the bottom that is ok but it is not in case of spinner.
How this is possible to do ?
layout.xml
<EditText android:id="@+id/twitterEditText" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:hint="@string/twitter_account" android:inputType="textWebEmailAddress" /> <Spinner android:id="@+id/countrySpinner" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:hint="@string/country" /> <Spinner android:id="@+id/stateSpinner" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:hint="@string/state" /> <Spinner android:id="@+id/citySpinner" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="15dp" android:hint="@string/city" />
I just faced the same Problem and after researching for a while the answer is quite easy:
<Spinner ... style="@style/Widget.AppCompat.Spinner.Underlined" ... />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With