Android Question xCustomListView enable/disable

Rusty

Well-Known Member
Licensed User
Longtime User
Is there a way to enable/disable a xCustomListView?
I've tried CLV.asview.enabled = false; I've added the CLV to a panel and set it to false; I've even added a transparent panel over the CLV and set it to enabled = false and none of these work.
Any advice is appreciated.
Rusty
 

Eme Fibonacci

Well-Known Member
Licensed User
Longtime User
You can use a transparent panel over the CLV. You need consume the event.
B4X:
Sub Panel1_Click
    Return True
End Sub
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
how do you create a transparent panel?
I've tried setting the panel to transparent in the designer and also explicitly in code and it always comes up white opaque...
B4X:
pnl.color = colors.transparent  'this doesn't work
Is it possible that since the panel (pnl) is defined in the designer it can't be made transparent?

Thanks
Rusty

Update: When I set the color to transparent immediately after loadlayout, it doesn't work later in the app when I display the otherwise visible=false panel.
If I set the color to transparent after setting it to visible, it will work!
Thanks Eme
 
Last edited:
Upvote 0

ocalle

Active Member
Licensed User
Longtime User
you mean transparent or disabled (Invisible)?
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
Transparent...
It needs to be enabled to create the click event and to be able to consume it.
Rusty
 
Upvote 0
Top