Android Spinner定制设计

时间:2015-03-09 10:34:33

标签: android

是否有可能使用如下图所示的微调定制设计? 这是我的微调器xml

 <Spinner
    android:id="@+id/service"
    android:layout_width="match_parent"
    android:textColor="#000"
    android:layout_height="wrap_content" />

&#39;我对使用Android实现这一目标感兴趣。

enter image description here

1 个答案:

答案 0 :(得分:0)

首先:你需要一张图片说&#34; spinner_bg.png&#34;,就像这样。

enter image description here

第二步:将此图像设置为旋转器的背景。

<Spinner
        android:id="@+id/service"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/spinner_bg"
        android:textColor="#000" />

希望这会对你有所帮助。