-1
A
回答
0
您可以使用Theme & Styles和ListView XML屬性或您的ListView內的任何視圖
1
您可以在values
文件夾中創建一個styles.xml
然後像做
<!-- ListView -->
<style name="List_Item" parent="@android:style/Widget.ListView">
<item name="android:background">@drawable/list_item_bg</item> // if you have a drawable you want to use
//add whatever other attributes you want
</style>
然後在XML與ListView
delcare你的風格
<ListView
android:id="@+id/listID"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/search_plate"
style="@style/List_Item"/> //here you implement your style
相關問題
- 1. django-filter更改默認表單外觀
- 2. 如何更改我的列表項的默認分隔符?
- 3. 如何更改下拉列表中的默認空白默認值(更改後)
- 4. svn更改列表:如何將操作限制爲「默認」更改列表?
- 5. 如何更改android中滾動視圖的默認外觀?
- 6. OSM更改默認標記外觀
- 7. 如何更改列表項目點擊的項目外觀。
- 8. 如何更改mysql表列的默認值?
- 9. 如何將默認值更改爲SQL中表中的列?
- 10. 如何更改活動時更改默認動畫?
- 11. 更改列的默認值
- 12. 如何更改表(默認)排序在MySQL無需轉換列
- 13. 將P4移動操作置於非默認更改列表中
- 14. sqlite3更改列默認值
- 15. 動態更改默認活動
- 16. django-tables2:更改外鍵列的默認列標題
- 17. DBAppender - 如何更改默認表名稱?
- 18. 如何在滾動活動中更改默認的FAB圖像
- 19. 更改Eclipse默認更新存儲庫列表
- 20. 我可以更改應用程序的默認啓動活動
- 21. 如何設置默認的UISegmentedControl外觀?
- 22. 如何從B活動通知A列表數據已更改?
- 23. 如何動態更改列表
- 24. p4默認更改列表中的文件太多。如何讓默認更改列表顯示最近使用的文件?
- 25. Mysql的更改表添加列和設置默認值
- 26. 更改下拉列表中的默認選定值
- 27. 更改SharePoint中的默認列表aspx頁面
- 28. 使用遷移更改表列的默認值
- 29. SybaseDB,更改表中現有列的默認值
- 30. NSComboBox列表默認滾動到底部
不,我不能訪問XML我不認爲因爲我使用n列表活動中的陣列適配器。我不使用列表視圖。 – tridianprime 2013-04-23 20:26:13
你應該仍然有一個'ListView'來設置'adapter on'。你也應該在你的適配器中指定一個'TextView'。你可以在它自己的'layout'文件中創建一個'TextView'並將'style'應用到那個 – codeMagic 2013-04-23 20:29:16
我想我現在看到ty – tridianprime 2013-04-23 20:41:23