B4J Question [Solved] Do not want that ListView Items get selected

Midimaster

Active Member
Licensed User
I have a ListView with 20 items (rows) on it. The rows are defined as Panes. On each Pane are some buttons and a volume slider as an ImageView on the right side:

1601622527085.png


I need the list only for displaying the Buttons and the volume sliders. I do not need the abibility to select one item.

But every time when i click between the buttons or move the volume slider the whole item gets selected. How can I stop this?

Ok. got it this is the solution:

B4X:
Private Sub SpurListe_SelectedIndexChanged(Index As Int)
    SpurListe.ClearSelection
End Sub
 

mangojack

Well-Known Member
Licensed User
Longtime User
this a CustomListView ? Yes ... Designer > Custom Properties: Pressed Color - set to Transparent
 
Upvote 0

Midimaster

Active Member
Licensed User
I'm still using the old fashioned ListView().

But at the moment I'm reading all about XCustomListView in the forum and try to understand...

Perhaps I will change this view to the new style...
 
Upvote 0

mangojack

Well-Known Member
Licensed User
Longtime User
I'm still using the old fashioned ListView()

Thanks for the info ... now just a little bewildered how you were able to achieve that result with normal ListView ...

for another day.
 
Upvote 0
Top