Slide to unlock animation in Android

I want to create an "slide to unlock" animation that is on an iPhone in an Android app. Basically there is a running wave-like color animation through a text image. Any ideas? Thanks for any help!

+5
source share
1 answer

https://github.com/RomainPiel/Shimmer-android

Information on how to use it is on the wiki.

But for the sake of completion:

Add a ShimmerTextView to the layout:

<com.romainpiel.shimmer.ShimmerTextView android:id="@+id/shimmer_tv" android:text="@string/shimmer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#444" android:textSize="50sp"/> 

To start the animation:

 shimmer = new Shimmer(); shimmer.start(myShimmerTextView); 

You might want to track the flicker instance after starting the animation, if you want to stop it.

To stop him:

 shimmer.cancel(); 

Enjoy : D

+2
source

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


All Articles