Comments (4)
What is the Android version of your test device? The library is not supposed to work below ICS.
from easyandroidanimations.
<uses-sdk
android:minSdkVersion="13"
android:targetSdkVersion="21" />
from easyandroidanimations.
Can you try minSdkVersion="14" and also can you provide more details about your test device.
from easyandroidanimations.
Yes you were right. Library worked for 14 and above and i tried two samples
- new BounceAnimation(yourView).animate(); (which worked)
- 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)
- TransferAnimation retain orignal view and transfer over other layouts
- Gradle
- Update Build Tools
- Android Manifest build error HOT 4
- Please provide a new jar HOT 2
- i am getting error at when i call .animate(); method
- ic_launcher.png repeated! HOT 1
- EasyAndroidAnimations Failed to Resolve HOT 2
- New GitHub release
- FlipToHorizontal Animation HOT 2
- effect Explode no compila error
- How get translation float
- How to set `RepeatMode` and `RepeatCount`
- Problem with Andorid API 7.0 HOT 2
- Animate view below another view HOT 1
- Error:(36, 13) Failed to resolve: com.github.2359media:EasyAndroidAnimations:0.8 HOT 8
- Library
- License? HOT 3
- After using an animation on a CardView, it then floats over the actionbar. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyandroidanimations.