Serge Bertet Active Member Licensed User Longtime User Aug 4, 2018 #1 Hello, I use xCustomListView V1.63 Code: Copy Sub Globals ... Private lv As CustomListView ... End Sub Sub fill_listview Dim p As Panel p.Initialize("") p.SetLayout(0dip, 0dip, 160dip, 80dip) p.LoadLayout("CellItem") Label1.Text = csr.GetString("sometext") lv.Add(p, "Item") End Sub "CellItem" design contains only 1 label I get this when compiling: error: incompatible types: ViewGroup cannot be converted to B4XViewWrapper Serge
Hello, I use xCustomListView V1.63 Code: Copy Sub Globals ... Private lv As CustomListView ... End Sub Sub fill_listview Dim p As Panel p.Initialize("") p.SetLayout(0dip, 0dip, 160dip, 80dip) p.LoadLayout("CellItem") Label1.Text = csr.GetString("sometext") lv.Add(p, "Item") End Sub "CellItem" design contains only 1 label I get this when compiling: error: incompatible types: ViewGroup cannot be converted to B4XViewWrapper Serge
Erel B4X founder Staff member Licensed User Longtime User Aug 5, 2018 #2 Can you upload the project? Upvote 0
Serge Bertet Active Member Licensed User Longtime User Aug 5, 2018 #3 I switched back to CustomListView V1.76 even if deprecated (but working), so I have no code source any more. I'll try to make an other project as example and post it here. To upload a project should I use the "file->export to zip" command? Thx for your help. "CustonListView deprecated" what it means, compatibulity problems or other? Serge Upvote 0
I switched back to CustomListView V1.76 even if deprecated (but working), so I have no code source any more. I'll try to make an other project as example and post it here. To upload a project should I use the "file->export to zip" command? Thx for your help. "CustonListView deprecated" what it means, compatibulity problems or other? Serge
klaus Expert Licensed User Longtime User Aug 5, 2018 #4 To upload a project should I use the "file->export to zip" command? Click to expand... Yes ! "CustonListView deprecated" what it means, compatibulity problems or other? Click to expand... It will not be maintained. Upvote 0
To upload a project should I use the "file->export to zip" command? Click to expand... Yes ! "CustonListView deprecated" what it means, compatibulity problems or other? Click to expand... It will not be maintained.
Serge Bertet Active Member Licensed User Longtime User Aug 5, 2018 #5 Here is a example project. still this error: incompatible types: ViewGroup cannot be converted to B4XViewWrapper pointing the CLV.add line For sure I forget something ... yesterday spent 3 hours on that. Some are using GUI library, actually I don't know why that do not work xCustomListView V1.63 B4A v8.30 Attachments CLV_test.zip CLV_test.zip 10.1 KB · Views: 548 Upvote 0
Here is a example project. still this error: incompatible types: ViewGroup cannot be converted to B4XViewWrapper pointing the CLV.add line For sure I forget something ... yesterday spent 3 hours on that. Some are using GUI library, actually I don't know why that do not work xCustomListView V1.63 B4A v8.30
klaus Expert Licensed User Longtime User Aug 5, 2018 #6 You need to check the XUI library: And replace Private Label1 As Label by Private Label1 As B4XView Upvote 0
Serge Bertet Active Member Licensed User Longtime User Aug 5, 2018 #7 Many thanks klaus, That's working great like that As I can say this information is well hiden ... or I'm missing to look somewhere. Serge Upvote 0
Many thanks klaus, That's working great like that As I can say this information is well hiden ... or I'm missing to look somewhere. Serge
klaus Expert Licensed User Longtime User Aug 5, 2018 #8 I had a look at the xCustomView demo project. Upvote 0
M Mahares Expert Licensed User Longtime User Aug 5, 2018 #9 klaus said: I had a look at the xCustomView demo project. Click to expand... I tried Serge's project after implementing your suggestions, but nothing appears in the activity title when I use this code: Code: Copy Sub clv_ItemClick (Index As Int, Value As Object) Activity.Title = Value CLV.AsView.BringToFront End Sub EDIT: The problem is: He has this line in his code: Code: Copy CLV.Add(AddItem("Item" & i), "") Last edited: Aug 5, 2018 Upvote 0
klaus said: I had a look at the xCustomView demo project. Click to expand... I tried Serge's project after implementing your suggestions, but nothing appears in the activity title when I use this code: Code: Copy Sub clv_ItemClick (Index As Int, Value As Object) Activity.Title = Value CLV.AsView.BringToFront End Sub EDIT: The problem is: He has this line in his code: Code: Copy CLV.Add(AddItem("Item" & i), "")