Gary Milne Active Member Licensed User Longtime User Jul 22, 2014 #1 I have a scrolling menu (buttons within a scrollview) with buttons in it sharing a single event handler. When I have a Button_Click event defined it fires but Button_Down and Button_Up do not fire. If I comment out the Button_Click event then Button_Down and Button_Up do fire. I'd like to be able to have all three fire if possible. Any insight?
I have a scrolling menu (buttons within a scrollview) with buttons in it sharing a single event handler. When I have a Button_Click event defined it fires but Button_Down and Button_Up do not fire. If I comment out the Button_Click event then Button_Down and Button_Up do fire. I'd like to be able to have all three fire if possible. Any insight?
Erel B4X founder Staff member Licensed User Longtime User Jul 22, 2014 #2 You should not intercept all three events as the Click event can "steal" the event. Consider using a Panel instead. The Touch event will give you more options. Upvote 0
You should not intercept all three events as the Click event can "steal" the event. Consider using a Panel instead. The Touch event will give you more options.
Gary Milne Active Member Licensed User Longtime User Jul 22, 2014 #3 Thanks for the quick response. In the Kindle book location 8985 it states that all three events should fire in the order Down, Up and Click. I believe what you say but thought I should point out that it contradicts the book. Is this only the case because it's in a Scrollview? Upvote 0
Thanks for the quick response. In the Kindle book location 8985 it states that all three events should fire in the order Down, Up and Click. I believe what you say but thought I should point out that it contradicts the book. Is this only the case because it's in a Scrollview?
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2014 #4 The buttons Up and Down events are not part of the Android SDK. On some devices due to slightly different UI implementations they behave differently. (search the site and you will see several threads about these events). I don't think that it is related to the ScrollView. Upvote 0
The buttons Up and Down events are not part of the Android SDK. On some devices due to slightly different UI implementations they behave differently. (search the site and you will see several threads about these events). I don't think that it is related to the ScrollView.