Android Question Controls under a panel

Loris Anoardi

Member
Licensed User
Longtime User
In my activity, i load a normal layout (LAYOUT1) with buttons. Then i load a panel dinamically and some other controls inside it. My problem: If the user clicks in the black region of the panel, at the same position of a button of LAYOUT1, this button is still active, even if it's hidden by the panel!
How can i solve? Thanks
Loris
 

LucaMs

Expert
Licensed User
Longtime User
Upvote 0

elitevenkat

Active Member
Licensed User
Longtime User
create a dummy panel click event just the skeleton sub end sub without any code. your problem is solved.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Ops, ho visto adesso che la domanda è di un italiano, hehehe (che sonno!!!)
Beh, puoi vedere il progetto che ho allegato al post che ti ho indicato in #4.

I saw just now that the question is posted by an italian member.
You can see the project I attached to the post I linked in #4
 
Upvote 0

Loris Anoardi

Member
Licensed User
Longtime User
Ciao ho visto ora la tua risposta, grazie!
Ho risolto inserendo nel secondo layout un bottone di grandezza 100%x x 100%y, disabilitato, e posto nel backgroud, dietro agli oggetti.
Essendo una view riesce a coprire pienamente il layout1.

Traduco per gli altri:
i inserted a button in the layout2 with size 100%x and 100%y, disabled. This button is a view that cover at 100% the layout1.
 
Upvote 0
Top