Android Question SetColorAnimated on S10 not animating

Discussion in 'Android Questions' started by db0070, Aug 16, 2019.

  1. db0070

    db0070 Active Member Licensed User

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

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

    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.
     
  3. db0070

    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
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice