masayukisuda / easinginterpolator Goto Github PK
View Code? Open in Web Editor NEWThirty-one different easing animation interpolators for Android.
Thirty-one different easing animation interpolators for Android.
This is supposed to be my animation in the xml
<?xml version="1.0" encoding="utf-8"?>
<alpha xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator"
android:fromAlpha="0.0" android:toAlpha="1.0" android:duration="100" />
Now i can't do it programmatically as i'm animating this
popupWindow.setAnimationStyle(R.style.popup_window_animation_phone);
And the file has to be in the style resource.
So can you help me setting the Interpolator for this animation in xml?
I don't think you should depend on alpha versions in regular releases.
EasingInterpolator/ei/build.gradle
Line 27 in 05f220e
So for the animations to work properly on proguard enabled build, you will need to add a rule to keep it untouched:
-keep class com.daasuu.** { *; }
Error:.../src/main/AndroidManifest.xml:30:9-36 Error:
Attribute application@allowBackup value=(false) from AndroidManifest.xml:30:9-36
is also present at [com.daasuu:EasingInterpolator:1.0.0] AndroidManifest.xml:12:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:28:5-276:19 to override.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':presentation:processDebugManifest'.
Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:30:9-36
is also present at [com.daasuu:EasingInterpolator:1.0.0] AndroidManifest.xml:12:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:28:5-276:19 to override.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I compared your animations with the following css animations http://easings.net/es
Differences that I found , if you want to add in a future update:
i got this error :NullPointerException: Attempt to get length of null array
in line :
ValueAnimator valueAnimator = new ValueAnimator();
valueAnimator.setInterpolator(new EasingInterpolator(Ease.CUBIC_IN));
valueAnimator.start();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.