Hi, no sorry, I did a little confusion, due to the fact that I am converting old code (due to your suggestion). Previously I had a Panel inside a CustomDialog , while now I have :
Dim pan As B4XView = xui.CreatePanel("")
I successfully converted the previous dialog, to use this new type of panel. It was fast and painless. But now I want to add a ListView which opens over the panel "pan", when the user clicks a button. Therefore I have declared a global CustomListView ListaCat:
Dim ListaCat as CustomListView
The error is:
pan.AddView(ListaCat,2%x,posy+deltay*2,96%x,30%y)
javac 1.8.0_121
src\b4a\identity\main.java:1664: error: incompatible types: customlistview cannot be converted to View
Thanks