Giter Club home page Giter Club logo

animationeasingfunctions's Introduction

Hey Bro. 👋


Products

64

  • TickerPad: a macOS app which helps you track your favorite crypto price via macOS menu bar.

Investment Portfolio

D-Matrix | Maxtropy | Showmebug | 元気森林 | Cyber Kunlun | AYoxi Tech | Conflux | Nervos | Cobo Wallet | SilverHand | Overide Halo

Code Stats

daimajia's github stats

Trading Story

Magic Trader


Social


Contact me

[email protected]

My lovely daughter. ❤️

图片

Leave a message to me? --> https://github.com/daimajia/daimajia/issues

animationeasingfunctions's People

Contributors

acious avatar bryant1410 avatar daimajia avatar mthli avatar pamartineza avatar tdaffin avatar wberredo avatar yelinaung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

animationeasingfunctions's Issues

不用传context的dp 转 px工具

public class DisplayUtil {

static {
    DisplayMetrics displayMetrics = Resources.getSystem().getDisplayMetrics();
    density = displayMetrics.density;
    scaledDensity = displayMetrics.scaledDensity;
}
private static float density;
private static float scaledDensity;

public static int px2dip(float px){
    return (int) (px/density + 0.5f);
}

public static float dip2px(float dp){
    return dp*density;
}
public static int px2sp(float px){
    return (int) (px/scaledDensity + 0.5f);
}
public static float sp2px(float sp){
    return  sp*scaledDensity;
}

}

anroid:allowBackup should not be used in library

Error:(23, 9) Execution failed for task ':wSRLandlord:processDebugManifest'.

Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:23:9
is also present at com.daimajia.easing:library:1.0.0:12:9 value=(true)
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:21:5 to override

MIT License

Hi, Can you please add the License file to this repository as you did in AndroidViewAnimations?

NineOldAndroids

Hello,
Since NineOldAndroids is deprecated when will you remove this dependency from this lib?
Thanks.

How to move back pos view when animation play done?

Hi AnimationEasingFunctions,
Thanks so much because your lib very great!
Sorry becase my english very bad!
I try to start animtorset via method playTogether
But i have problem about move back View to old position! How can i do that?
Please help me!
Hope nice day to you guys

java.lang.NoSuchMethodError: No static method glide

java.lang.NoSuchMethodError: No static method glide(Lcom/daimajia/easing/Skill;FLcom/nineoldandroids/animation/ValueAnimator;)Lcom/nineoldandroids/animation/ValueAnimator; in class Lcom/daimajia/easing/Glider; or its super classes (declaration of 'com.daimajia.easing.Glider' appears in /data/app/com.seuchild.smallseedling-EKGm8F1g0YQlzLb--O6EZw==/split_lib_dependencies_apk.apk)
at com.github.omadahealth.circularbarpager.library.CircularBar.animateProgress(CircularBar.java:606)
at com.seuchild.smallseedling.health.HealthActivity.onResume(HealthActivity.java:59)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1457)
at android.app.Activity.performResume(Activity.java:7149)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3700)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3766)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2995)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1688)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6753)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:482)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

I have add
-keep class com.daimajia.easing.** { ; }
-keep interface com.daimajia.easing.
* { *; }
-keepclassmembers public class * extends com.daimajia.easing.BaseEasingMethod {
public (...);
}
to proguard-project.txt file.

Please add a license

This repo is missing a license. Without a license, all code is copyright the author and may not be used by anyone else.

Please use something like http://choosealicense.com/ to decide what license to use. I recommend MIT or GPL

How to concatenate animations

Hi, I want to know how to concatenate animations, I mean:

For example:

  1. I have two list of animations. Each list contain animations to play together.
    2.I want to execute secuencially, first the list one (play together) and then execute the list two (play together).

I'm trying to execute this situation using listeners, but I don't know why doesn't work. This is my code:

    final Point distance = new Point(Math.abs(pointPlane.distace(pointImage1).getX()), Math.abs(pointPlane.distace(pointImage1).getY()));
    AnimatorSet set = new AnimatorSet();
    set.playTogether(
            Glider.glide(Skill.Linear, 700, ObjectAnimator.ofFloat(imagePlane, "translationY", 0, -1 * distance.getY())),
            Glider.glide(Skill.Linear, 700, ObjectAnimator.ofFloat(imagePlane, "translationX", 0, distance.getX()))
    );
    set.setDuration(2000);
    set.start();
    set.addListener(new Animator.AnimatorListener() {
        @Override
        public void onAnimationStart(Animator animator) {}

        @Override
        public void onAnimationEnd(Animator animator) {
            imagePlane.setX(pointImage1.getX());
            imagePlane.setY(pointImage1.getY());
            final Point distance = new Point(Math.abs(pointPlane.distace(pointImage2).getX()), Math.abs(pointPlane.distace(pointImage2).getY()));
            AnimatorSet set2 = new AnimatorSet();
            set2.playTogether(
                    Glider.glide(Skill.Linear, 700, ObjectAnimator.ofFloat(imagePlane, "translationY", 0, 30)),
                    Glider.glide(Skill.Linear, 700, ObjectAnimator.ofFloat(imagePlane, "translationX", 0, 30))
            );
            set2.setDuration(2000);
            set2.start();
        }

        @Override
        public void onAnimationCancel(Animator animator) {}

        @Override
        public void onAnimationRepeat(Animator animator) {}
    });

Thanks in advance!

Release .aar contains ic_launcher.png in drawable-hdpi-v4

All resources should be namespaced.
And maybe default generated resources should not be included in released builds
This will cause aapt duplicate file errors if imported into a project that has a default generated ic_launcher file in a drawable-hdpi directory.

Why using TypeEvaluator instead of Interpolator in this library?

PropertyAnimation文档里似乎更推荐通过自定义Interpolator来控制所选属性的变化率。而TypeEvaluator的描述是:If you want to animate a type that is _unknown_ to the Android system, you can create your own evaluator by implementing the TypeEvaluator interface,似乎更加强调针对自定义类型或属性改变的情况。
自己在项目中几乎都使用Interpolator,这里不太明白,请教一下。
Thank you!:)

Proguard causes `NoSuchMethodException`

Hey! Just want to say first that I really appreciate your work.

I'm using this library in an application and found a bug when using proguard. Without any changes to the proguard.project.txt file, I get this error when trying to use the animations:

W/System.err(22899): java.lang.NoSuchMethodException: <init> [float]
W/System.err(22899):    at java.lang.Class.getConstructorOrMethod(Class.java:472)
W/System.err(22899):    at java.lang.Class.getConstructor(Class.java:446)
W/System.err(22899):    at com.daimajia.easing.Skill.a(SourceFile:104)
W/System.err(22899):    at com.daimajia.easing.Glider.a(SourceFile:33)

I worked around this by adding to my proguard-project.txt file:

-keep class com.daimajia.easing.** { *; }
-keep interface com.daimajia.easing.** { *; }

It might be helpful to add this to documentation (like the README).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.