Android Question custom view parent click

Status
Not open for further replies.

Kiran Raotole

Active Member
Licensed User
Hii experts,
My custom view Label class is working fine.
I add custom view label object in custom list view by add row function.
But customlistview_itemclick event is not running when I click on custom view.

Here is my code of custom cllick event
B4X:
Private Sub mBase_Click
    Log(mCallBack)
    Log(mEventName)
    If SubExists(mCallBack,mEventName &  "_Click") Then
        CallSub(mCallBack,mEventName & "_Click")
    End If
End Sub

How to do this?
 

npsonic

Active Member
Licensed User
Is there is no solution in custom object? like using parent
You must learn basics of B4A, so you could do what you want. Go watch learning videos created by Erel and find booklets.
I don't know if anyone can help you before you understand basics.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I add custom view label object in custom list view by add row function.
But customlistview_itemclick event is not running when I click on custom view.
If you remove any click event in your blable customview module, and the CustomListView1_ItemClick works!
But, then you loose any Click event if you use the blable customview alone somewhere else.
I don't know if it's possible to transmit any event to the parent view of a customview.
 
Upvote 0

Kiran Raotole

Active Member
Licensed User
Erel's help is needed, here.

I think that "my solution" works, is good enough and, probably, is the unique possible.

I think also that no one has tried it.
Your solution is great, but
I'm unable to perform command line written in CustomListView1_Click and
It's time consuming.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…