I would like for one of my views to appear gradually on screen and I am not sure what to use. I tried with animations and combinations of alpha and scale animations in XML, for example something like:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="2000"></alpha>
</set>
It doesn't give me expected result. I don't want my view to scale to final position, I would like it to appear gradually. It shouldn't start as small View and then becoming bigger and bigger. It should be it's original size at the beginning.
For example if revealing last's 3 second, at the beginning view would not be visible at all. At 0.1 second it would start revealing a little bit, at 1.5 second it would be revealed 50% and after 3 seconds it's revealed 100%.
Something like this:
How to accomplish that? Thanks :)
0 comments:
Post a Comment