Get current alpha value for fade animation

I need your help for animating on Android.

In fact, I have an animation on the screen with a duration of = 10 seconds.

During this time, if I touch the screen, I would like to start fade from the current alpha value.

for example

t = 0 seconds I start fade out (fromAlpah = 1.0 toAlpha = 0) t = 5 seconds I click on the screen, so I would like to run fadeIn from the current alpha (0.5 in this example)

My problem: I do not know how I can get the current alpha value

+4
source share
1 answer

My problem: I do not know how I can get the current alpha value

View getAlpha(), [0, 1]. , -

0

Source: https://habr.com/ru/post/1608506/


All Articles