Create Circular Reveal For Pre-lollipop Devices (android)
Solution 1:
I find a library for you. Circular reveal, is compatible with 2.3 devices.
Hope it helps for you!!
Solution 2:
This is an update to Alejandro's and BadYous's answers.
Best library is still Circular Reveal.
The right description is
implementation 'com.github.ozodrukh:CircularReveal:2.0.1'
Use the right import for ViewAnimationUtils
import io.codetail.animation.ViewAnimationUtils;
Solution 3:
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.
Solution 4:
The best library is : CircularReveal
use :
Use regular RevealFrameLayout
& RevealLinearLayout
<io.codetail.widget.RevealFrameLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"><!-- Put more views here if you want, it's stock frame layout --><android.support.v7.widget.CardView...
/></io.codetail.widget.RevealFrameLayout>
and :
ViewmyView= findView(R.id.awesome_card);
// get the center for the clipping circleintcx= (myView.getLeft() + myView.getRight()) / 2;
intcy= (myView.getTop() + myView.getBottom()) / 2;
// get the final radius for the clipping circleintfinalRadius= Math.max(myView.getWidth(), myView.getHeight());
SupportAnimatoranimator=
ViewAnimationUtils.createCircularReveal(myView, cx, cy, 0, finalRadius);
animator.setInterpolator(newAccelerateDecelerateInterpolator());
animator.setDuration(1500);
animator.start();
This library is simple and works very nice in pre lollipop.
Solution 5:
Hope this will help you... otherwise just use this http://pulse7.net/android/android-create-circular-reveal-animation-and-ripple-effect-like-whatsapp/
compile ('com.github.ozodrukh:CircularReveal:1.1.1@aar') {
transitive = true;
Post a Comment for "Create Circular Reveal For Pre-lollipop Devices (android)"