我想使TextView看起来像具有新Material风格的微调器。
我设法使用“ Widget.Material.Light.Spinner”样式进行了此操作,但在AppCompat(v21)资源中没有找到任何替代方法。我的xml:
<TextView
android:id="@+id/sp_league_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
tools:text="Premier league"
style="@android:style/Widget.Material.Light.Spinner"
android:textColor="@android:color/white" />
我会去:
style="@style/Widget.AppCompat.Spinner"
但是请随意选择另一个:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句