Android Question disable listview focus

mshafiee110

Active Member
Licensed User
Longtime User
Hello friends,


I want to focus on listview of the disabled,I am using the following code snippet,
But does not work.


B4X:
    Dim JO As JavaObject = ListView1
    JO.RunMethod("setFocusable",Array As Object(False))
   
    Dim JO As JavaObject = ListView1
    JO.RunMethod("setFocusableInTouchMode",Array As Object(False))
 

mshafiee110

Active Member
Licensed User
Longtime User
You can always put a transparent panel over the ListView and handle its click event.
tnx,
Please explain this.
I'm confusedo_O
 
Upvote 0

mshafiee110

Active Member
Licensed User
Longtime User
Add a panel with its Color set to Colors.Transparent and handle its click event. The user inputs will not reach the ListView.
ok,tnx a lot.
 
Upvote 0
Top