Android Question xCustomListView Visible?

RichardN

Well-Known Member
Licensed User
Longtime User
A single Activity loads a layout containing an xCustomListView (CLV1) that has the Visible property set to false so that it can be revealed later.

In the Sub Globals CLV1 is declared in the same manner as all the examples I have seen:

B4X:
Private CLV1 As CustomListView

However, when I come to read or set the .Visible property the IDE will offer the command CLV1.AsView.Visible = True but it will not compile due to a type mismatch error.

How do I correctly read or set the .Visible property of a CustomListView in code?
 

RichardN

Well-Known Member
Licensed User
Longtime User
A lesson was learnt here. Don't be in a hurry to upgrade native views in applications immediately a new and better method comes out. I will be writing future applications using cross-platform methods (where I need to) but upgrading old applications every time something better comes out is a path with many traps.
 
Upvote 0
Top