Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create circular reveal for pre-Lollipop devices (Android)

Is it possible to get this new Animator for pre-Lollipop devices?

I am newbie and I am trying to get the java files from its official documentation, but I am really lost, I don't know how to find it, etc.

like image 882
JavierSegoviaCordoba Avatar asked Feb 16 '15 15:02

JavierSegoviaCordoba


3 Answers

I find a library for you. Circular reveal, is compatible with 2.3 devices.

Hope it helps for you!!

like image 144
Alejandro Martínez Martínez Avatar answered Nov 05 '22 13:11

Alejandro Martínez Martínez


This is an update to Alejandro's and BadYous's answers.

  1. Best library is still Circular Reveal.

  2. The right description is implementation 'com.github.ozodrukh:CircularReveal:2.0.1'

  3. Use the right import for ViewAnimationUtils

     import io.codetail.animation.ViewAnimationUtils;
    
like image 7
Huseyin Avatar answered Nov 05 '22 12:11

Huseyin


Yes! you can use CircularReveal library : as @Alejandro said.

But you have to modify the library dependency to :

dependencies {
    compile 'com.github.ozodrukh:CircularReveal:1.1.1' //without "@aar" contrary to what the documentation says
}

If not, you'll get an Exception on some devices running on pre-lollipop version.

like image 4
Badr Yousfi Avatar answered Nov 05 '22 12:11

Badr Yousfi