【问题标题】:Android - How to add a bottom (focused) border to spinner?Android - 如何为微调器添加底部(焦点)边框?
【发布时间】:2015-11-10 09:20:39
【问题描述】:

如何为我的微调器添加底部边框,例如 Google 添加新联系人(见图)?
然后,当我单击微调器时,在 Google 添加新联系人中,边框变为蓝色。

我的微调器有这个代码:

    <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"/>

【问题讨论】:

    标签: android spinner android-spinner


    【解决方案1】:

    聚会迟到了,但你可以使用style="@style/Widget.AppCompat.Spinner.Underlined

    【讨论】:

    • 晚了,但也是唯一的。非常感谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-26
    • 1970-01-01
    • 1970-01-01
    • 2016-10-17
    • 1970-01-01
    • 2014-10-18
    • 2020-10-24
    相关资源
    最近更新 更多