我当前正在使用Theme.AppCompat.Light
我的应用程序。但是由于我不喜欢默认微调器的外观,因此我想使用Theme.Holo.Light
微调器外观。
如何为某个小部件强制样式?
谢谢
在布局XML中,您可以轻松指定View / widget的样式。因此,在您的情况下,您可以选择具有以下样式的旧式Holo微调器样式:
<Spinner
style="@android:style/Widget.Holo.Light.Spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句