Android Question SetColorAnimated on S10 not animating

db0070

Active Member
Licensed User
This code works on my Samsung tablet, but the animation does not occur on the new Samsung S10.

B4X:
Sub pnlX_Touch (Action As Int, X As Float, Y As Float)
    pnlX.SetColorAnimated(6000,Colors.black,Colors.Transparent)
End Sub
 

Erel

Administrator
Staff member
Licensed User
Does it work if you use non-transparent color?
Your code is wrong as the Touch event can be called many times. Change the animation to happen only when Action = pnlX.ACTION_DOWN.
 

db0070

Active Member
Licensed User
Changing Colors.Transparent to Colors.Blue does goes straight to blue without animation on the S10 only
ACTION_DOWN is always 0 on the Samsung Tablet and S10 phone as I touch the panel.
I tried pnlX_Click event, and this does not fire either on the Samsung Tablet or the S10
 

Erel

Administrator
Staff member
Licensed User
ACTION_DOWN is always 0 on the Samsung Tablet and S10 phone as I touch the panel.
That's true. This is the value of this constant.

It will be easier to help you if you upload a small project that demonstrates the problem.
 
Top