Android Question [Solved] Problem in a panel used like modal dialog

asales

Expert
Licensed User
Longtime User
I have a second panel (semi-transparent and invisible) in layout that works like a custom dialog.
When I click in button1 (in the main panel) of the second panel is made visible.

I want that the second panel works like a modal panel, but if I click in the label in second panel, the event of button2 (in main panel) is consumed.

How I can fix it?

The project example is in attached.

Thanks in advance for any tips.
 

Attachments

  • panelclick.zip
    9 KB · Views: 197

klaus

Expert
Licensed User
Longtime User
You could also use:
Sub pDialogo2_Click
End Sub

This is needed to consume the event. By default Android transmits the events to underlying views.
With an empty event routine this transmission is avoided.
 
Upvote 0
Top