回答
您可以使用它。
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/scale_10dp">
<Spinner
android:id="@+id/spnCatogary"
android:layout_width="match_parent"
android:layout_height="1dp"
android:textSize="@dimen/txt_14"
android:visibility="invisible" />
<TextView
android:id="@+id/txtSpnCatogary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/left_margin_round_shape_edittext"
android:drawableRight="@drawable/down_arrow"
android:hint="English"
android:inputType="textCapSentences"
android:padding="@dimen/scale_7dp"
android:textColor="@color/hint_text_color"
android:textSize="@dimen/txt_14" />
</FrameLayout>
left_margin_round_shape_edittext.xml
<?xml version="1.0" encoding="utf-8"?>
<item>
<shape android:shape="rectangle">
<solid android:color="#E7E7E7" />
<corners android:radius="4dp" />
</shape>
</item>
<item android:left="2dp">
<shape android:shape="rectangle">
<solid android:color="#FFFFFF" />
<corners android:radius="2dp" />
<stroke
android:width="1dp"
android:color="#E7E7E7" />
</shape>
</item>
還添加圖像這裏
[![down_arrow][1]][1]
你能分享android:background =「 @ drawable/left_margin_round_shape_edittext「文件? – craziejunkie
Aslo請給我那個圖像android:drawableRight =「@ drawable/down_arrow」 – craziejunkie
@craziejunkie:我在這裏更新ypu檢查它並且upvote。 –
- 1. android更改微調按鈕的外觀使用樣式
- 2. 在android中更改微調器樣式
- 3. 在Android中更改微調框的外觀
- 4. Android - 自定義微調控件外觀
- 5. 基於綁定改變其外觀的子控件的樣式
- 6. Android微調改變setContentView
- 7. android中的默認微調樣式
- 8. eclipse的外觀改變了
- 9. Android上的微調
- 10. 以編程方式更改微調樣式
- 11. 更改微調標題欄樣式
- 12. 微調器自動更改樣式
- 13. 自定義樣式setDropDownViewResource Android微調
- 14. 在Iframe內改變網站的外觀
- 15. Android更改微調主題/底部邊框樣式
- 16. 在Android中以編程方式更改微調器
- 17. 處理方向改變微調 - android
- 18. Android微調改變箭頭顏色
- 19. 更改列表項的外觀,以便它們看起來像列表一樣
- 20. 一樣的外觀
- 21. 更改Android應用程序的樣式和主題中的文本外觀
- 22. image xcassets問題:它改變了我的遊戲的外觀
- 23. 如何改變Android應用程序的外觀在運行時
- 24. Android 4.0上的微調器
- 25. 自定義微調樣式
- 26. 應用樣式微調器
- 27. Android微調額外線
- 28. 如何改變我的MKMapViewAnnotation的外觀
- 29. 改變我的NSIS的外觀
- 30. TK按鈕改變外觀
我想要改變微調器外觀而不是其標籤尺寸和顏色。 – craziejunkie
'android:background =「backgroundimage」'和'android:popupBackground =「popupimage」' –
檢查此 http://stackoverflow.com/questions/13703233/style-android-spinner – Ciril