Have experimented with buttons and panels, on a phone and on a tablet.
App comprises one button, one panel and four labels to record up and down events on the button and up and down touch actions on the panel.
Sub btn1_down
lblBTNDown.Text=lblBTNDown.Text + 1
End Sub
Sub btn1_up
lblBTNUp.Text=lblBTNUp.Text + 1
End Sub
Sub pnl1_touch(ACTION As Int,X As Float,Y As Float)
If ACTION = Activity.ACTION_DOWN Then
lblPNLDown.Text=lblPNLDown.Text + 1
Else If ACTION = Activity.ACTION_up Then
lblPNLUp.Text=lblPNLUp.Text + 1
End If
End Sub
The labels for the button events show one increment for a quick, light tap, but always at least two downs and an up for one steady press (followed by an up for the release).
The panel does behave as expected: one increment for touching the panel then one for releasing.
My phone (BLU ENERGY DIAMOND) behaves better than my tablet (LENOVO Tab 3 7). Pressing firmly and continuously on the tablet causes the labels to carry on incrementing somewhat randomly, even the labels associated with the panel. A gentle, continuous touch on the panel is OK. Clearly there is a hardware issue here for the tablet. However, I think there is definitely a bug with the button_down and button_up events triggering incorrectly.
I'll use some panels for my particular app for the time being.
Thanks