带下划线appcompat的Android微调器 [英] Android spinner with underline appcompat
本文介绍了带下划线appcompat的Android微调器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在为我的应用程序使用appcompat主题.需要知道我如何向微调框显示下划线.它只是显示锚点.我尝试使用android:background设置下划线,但这会使锚点消失.
I am using a appcompat theme for my application. Need to know how i can show underline to spinner. It is just showing anchor. I tried setting up underline using android:background but it makes the anchor disappear.
推荐答案
更新您的支持库并使用XML
Update your support library and in XML use
请将此样式添加到微调器中
Please add this style to your Spinner
style="@style/Base.Widget.AppCompat.Spinner.Underlined"
这篇关于带下划线appcompat的Android微调器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文