L latcc Banned Dec 13, 2011 #1 This may be an Android bug. The activity has a view (say button or tab-view). Also a full screen panel. the panel is topmost and the button or tabview is set enabled = false visible = false But if you tap the part of the panel where the underlying button or tab-view is placed that view responds as though it is enabled. If the hidden button were set to (say) play a sound then by tapping that area of the topmost panel you will set off that sound because the button is somehow clicked. This happens even though you've completely disabled and hidden it and it is not visible on the screen. Trouble is, I am now finding it hard to replicate with a newly started program. Last edited: Dec 13, 2011
This may be an Android bug. The activity has a view (say button or tab-view). Also a full screen panel. the panel is topmost and the button or tabview is set enabled = false visible = false But if you tap the part of the panel where the underlying button or tab-view is placed that view responds as though it is enabled. If the hidden button were set to (say) play a sound then by tapping that area of the topmost panel you will set off that sound because the button is somehow clicked. This happens even though you've completely disabled and hidden it and it is not visible on the screen. Trouble is, I am now finding it hard to replicate with a newly started program.
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2011 #2 This is how Android behaves. You can avoid this issue by handling the Panel's Click event (the Sub can be empty).
This is how Android behaves. You can avoid this issue by handling the Panel's Click event (the Sub can be empty).
Cableguy Expert Licensed User Longtime User Dec 15, 2011 #3 Its one of those things...seems like with some views ( user action ones ), Android doesn't like to not consume the events... I had a similar problem with an array of panels, buttons and iageviews layed on top of each other...
Its one of those things...seems like with some views ( user action ones ), Android doesn't like to not consume the events... I had a similar problem with an array of panels, buttons and iageviews layed on top of each other...
L latcc Banned Dec 16, 2011 #4 Cableguy said: Its one of those things...seems like with some views ( user action ones ), Android doesn't like to not consume the events... I had a similar problem with an array of panels, buttons and iageviews layed on top of each other... Click to expand... So, when we choose to disable a view Android doesn't always do it?
Cableguy said: Its one of those things...seems like with some views ( user action ones ), Android doesn't like to not consume the events... I had a similar problem with an array of panels, buttons and iageviews layed on top of each other... Click to expand... So, when we choose to disable a view Android doesn't always do it?
Cableguy Expert Licensed User Longtime User Dec 17, 2011 #5 latcc said: So, when we choose to disable a view Android doesn't always do it? Click to expand... If the view has a click event, and it is not being consumed, there are some erroneous behaviours at times... As I said, in my Pairs4Android games, I had to consume nearly 150 click events, just for it to behave as expected... THIS IS NOT A B4A ISSUE, ITS THE WAY ANDROID IT SELF BEHAVES
latcc said: So, when we choose to disable a view Android doesn't always do it? Click to expand... If the view has a click event, and it is not being consumed, there are some erroneous behaviours at times... As I said, in my Pairs4Android games, I had to consume nearly 150 click events, just for it to behave as expected... THIS IS NOT A B4A ISSUE, ITS THE WAY ANDROID IT SELF BEHAVES
L latcc Banned Dec 22, 2011 #6 Cableguy said: If the view has a click event, and it is not being consumed, there are some erroneous behaviours at times... As I said, in my Pairs4Android games, I had to consume nearly 150 click events, just for it to behave as expected... Click to expand... So you manually consumed the click events. How does that work?
Cableguy said: If the view has a click event, and it is not being consumed, there are some erroneous behaviours at times... As I said, in my Pairs4Android games, I had to consume nearly 150 click events, just for it to behave as expected... Click to expand... So you manually consumed the click events. How does that work?