GithubHelp home page GithubHelp logo

Comments (4)

umairvatao avatar umairvatao commented on July 22, 2024

What is the Android version of your test device? The library is not supposed to work below ICS.

from easyandroidanimations.

manpreetsinghsodhi avatar manpreetsinghsodhi commented on July 22, 2024
<uses-sdk
    android:minSdkVersion="13"
    android:targetSdkVersion="21" />

from easyandroidanimations.

umairvatao avatar umairvatao commented on July 22, 2024

Can you try minSdkVersion="14" and also can you provide more details about your test device.

from easyandroidanimations.

manpreetsinghsodhi avatar manpreetsinghsodhi commented on July 22, 2024

Yes you were right. Library worked for 14 and above and i tried two samples

  1. new BounceAnimation(yourView).animate(); (which worked)
  2. new ExplodeAnimation(yourView)
    .setExplodeMatrix(ExplodeAnimation.MATRIX_2X2)
    .setInterpolator(new DecelerateInterpolator())
    .setDuration(500)
    .setListener(new AnimationListener() {
    @OverRide
    public void onAnimationEnd(Animation animation) {
    perform your own functions here when animation ends
    }
    })
    .animate();

The second one didint worked for me with following exception

04-28 16:50:19.206: E/AndroidRuntime(15064): FATAL EXCEPTION: main
04-28 16:50:19.206: E/AndroidRuntime(15064): Process: com.example.nanocarnavigator, PID: 15064
04-28 16:50:19.206: E/AndroidRuntime(15064): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.nanocarnavigator/com.example.nanocarnavigator.MainActivity}: java.lang.NullPointerException
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2252)
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2301)
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.app.ActivityThread.access$800(ActivityThread.java:144)
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.os.Handler.dispatchMessage(Handler.java:106)
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.os.Looper.loop(Looper.java:136)
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.app.ActivityThread.main(ActivityThread.java:5196)
04-28 16:50:19.206: E/AndroidRuntime(15064): at java.lang.reflect.Method.invokeNative(Native Method)
04-28 16:50:19.206: E/AndroidRuntime(15064): at java.lang.reflect.Method.invoke(Method.java:515)
04-28 16:50:19.206: E/AndroidRuntime(15064): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
04-28 16:50:19.206: E/AndroidRuntime(15064): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
04-28 16:50:19.206: E/AndroidRuntime(15064): at dalvik.system.NativeStart.main(Native Method)
04-28 16:50:19.206: E/AndroidRuntime(15064): Caused by: java.lang.NullPointerException
04-28 16:50:19.206: E/AndroidRuntime(15064): at com.easyandroidanimations.library.ExplodeAnimation.animate(ExplodeAnimation.java:73)
04-28 16:50:19.206: E/AndroidRuntime(15064): at com.example.nanocarnavigator.MainActivity.onCreate(MainActivity.java:34)
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.app.Activity.performCreate(Activity.java:5240)
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
04-28 16:50:19.206: E/AndroidRuntime(15064): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2216)
04-28 16:50:19.206: E/AndroidRuntime(15064): ... 11 more
What i did was nothing more than putting your demonstration code for explode animation in my activity on create method

from easyandroidanimations.

Related Issues (20)

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.