如何動態設定Listview中每一行的格式 - Android

By Caitlin
at 2016-09-24T17:08
at 2016-09-24T17:08
Table of Contents
如題,舉例來說,需求是listview中
第一行的格式可能是 左邊 imageview+ 右邊 textview
第二行的格式可能是 左邊 textview + 右邊 textview
第三行的格式可能是 左邊 textview + 中間imageview + 右邊 textview
上面只是舉例,
實作上每一行所用到的元件類型(button , textview等等)
和數量都不固定的話,該怎麼作,希望能得到指引或文章可參考
--
第一行的格式可能是 左邊 imageview+ 右邊 textview
第二行的格式可能是 左邊 textview + 右邊 textview
第三行的格式可能是 左邊 textview + 中間imageview + 右邊 textview
上面只是舉例,
實作上每一行所用到的元件類型(button , textview等等)
和數量都不固定的話,該怎麼作,希望能得到指引或文章可參考
--
Tags:
Android
All Comments

By Queena
at 2016-09-26T21:41
at 2016-09-26T21:41

By Connor
at 2016-09-27T02:10
at 2016-09-27T02:10

By Ingrid
at 2016-09-27T18:12
at 2016-09-27T18:12
Related Posts
ZenFone2與小影免費版不相容

By Heather
at 2016-09-24T11:08
at 2016-09-24T11:08
雷亞遊戲五週年特價

By Callum
at 2016-09-23T23:00
at 2016-09-23T23:00
Singlebeep yay 匿名聊天交友軟體

By Queena
at 2016-09-23T21:58
at 2016-09-23T21:58
請問gmail只有在連上wi-fi時才會跳通知嗎

By Anonymous
at 2016-09-23T21:05
at 2016-09-23T21:05
NEXUS 5X 升級7.0後WIFI無法連線

By Christine
at 2016-09-23T19:48
at 2016-09-23T19:48