liurenwoxing Member Licensed User Aug 24, 2018 #1 Hello , When i use the Customlistview ,how can i get or set each item's lable,button,imageview attribute?
Hello , When i use the Customlistview ,how can i get or set each item's lable,button,imageview attribute?
R ronell Well-Known Member Licensed User Longtime User Aug 24, 2018 #2 create your own layout and add views to it , set the views attribute and name the layout "clv_layout" now load that layout in a panel B4X: panel1.LoadLayout("clv_layout") then add the panel in clv as custom item B4X: clv.Add(panel1, 50dip, "value") Upvote 0
create your own layout and add views to it , set the views attribute and name the layout "clv_layout" now load that layout in a panel B4X: panel1.LoadLayout("clv_layout") then add the panel in clv as custom item B4X: clv.Add(panel1, 50dip, "value")
LucaMs Expert Licensed User Longtime User Aug 24, 2018 #3 A long time ago I did this test (I was practically sleeping ): https://www.b4x.com/android/forum/threads/get-all-views-or-values-of-a-customlistview-item.81902/ Sooner or later I will improve it and I will use xCustomListView. See / use version 2. Upvote 0
A long time ago I did this test (I was practically sleeping ): https://www.b4x.com/android/forum/threads/get-all-views-or-values-of-a-customlistview-item.81902/ Sooner or later I will improve it and I will use xCustomListView. See / use version 2.
Erel B4X founder Staff member Licensed User Longtime User Aug 24, 2018 #4 See the example: https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/ It modifies the existing items. Upvote 0
See the example: https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/ It modifies the existing items.
LucaMs Expert Licensed User Longtime User Aug 24, 2018 #5 Erel said: See the example: https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/ It modifies the existing items. Click to expand... Yes but my code does it better (I hope, I don't remember my code ) Upvote 0
Erel said: See the example: https://www.b4x.com/android/forum/t...listview-cross-platform-customlistview.84501/ It modifies the existing items. Click to expand... Yes but my code does it better (I hope, I don't remember my code )