Android Question Manage onClickListener in items in a CustomListView: IMPORTANT

Paolodc

Member
Hi, I've a billion question. I'm using a xCLV in where put my message for a chat. I'm trying to insert a panel with a seekbar and a btn to see an audio message. I want to start that audio when I clink on a button but It's hard to get success. I's use this sub "CustomListView1_ItemClick (Index As Int, Value As Object)" to khow which item Is clicked but It works when whole item is click, not just the "play button". So with "btnPlay_Click" only when that view is pressed the audio start but... How do I know both how press just a button to start mp3 file and how know wich item is clicked?
See these images. I hope that with them it should be more simple to hunderstand...

1 - Button number one is clicked but the last audio message start.
1.png

2 - Button number two is clicked but also the last audio message start.
2.png

3 - Button number three is clicked but just the last audio message start.
3.png


Does exist some event that tell you both wich "btnplay" is pressed and in which item in a xCLV????

Please, It's very important for me.
Ps: I apologize for my english.
 

Paolodc

Member
Perfect! This is what I mean! Obviously I need to try that example but I also think It will run correctly for me.
I missed that your tutorial. So, great and thanks for all!
Just one thing. As result of I studed B4A as first programming language I'm getting success to code a cute application with some of my friends . It's the best IDE to start!!!!! Thanks ? ?
 
Last edited:
Upvote 0
Top