Android - How to add a bottom (focused) border to spinner?
Asked Answered
G

1

6

How can I add a bottom border to my spinner, like the Google Add new contact (see image)?
Then, when I click on the spinner, in Google Add new contact, the border becomes blue.

My spinner has this code:

    <Spinner
        android:id="@+id/spinner1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:entries="@array/insert_type"
        android:prompt="@string/insert_type_title"/>

Add contact screenshot

Guzman answered 17/8, 2015 at 16:35 Comment(0)
J
3

Late to the party, but you can use style="@style/Widget.AppCompat.Spinner.Underlined

Jujutsu answered 9/5, 2017 at 14:35 Comment(1)
Late, but the only. Thank you so much!Guzman

© 2022 - 2024 — McMap. All rights reserved.