It's a cool animation which can use in splash or somewhere else.

Related tags

Animations Particle
Overview

What's Particle ?

It's a cool animation which can use in splash or anywhere else.

Demo

Markdown

Article

手摸手教你用Canvas实现简单粒子动画

Attributes

name format description 中文解释
pv_host_text string set left host text 设置左边主文案
pv_host_text_size dimension set host text size 设置主文案的大小
pv_particle_text string set right particle text 设置右边粒子上的文案
pv_particle_text_size dimension set particle text size 设置粒子上文案的大小
pv_text_color color set host text color 设置左边主文案颜色
pv_background_color color set background color 设置背景颜色
pv_text_anim_time integer set particle text duration 设置粒子上文案的运动时间
pv_spread_anim_time integer set particle text spread duration 设置粒子上文案的伸展时间
pv_host_text_anim_time integer set host text displacement duration 设置左边主文案的位移时间

Usage

Define your banner under your xml :

<me.wangyuwei.particleview.ParticleView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    pv:pv_background_color="#2E2E2E"
    pv:pv_host_text="github"
    pv:pv_host_text_size="14sp"
    pv:pv_particle_text=".com"
    pv:pv_particle_text_size="14sp"
    pv:pv_text_color="#FFF"
    pv:pv_text_anim_time="3000"
    pv:pv_spread_anim_time="2000"
    pv:pv_host_text_anim_time="3000" />

Start animation :

mParticleView.startAnim();

Add animation listener to listen the end callback :

mParticleView.setOnParticleAnimListener(new ParticleView.ParticleAnimListener() {
    @Override
    public void onAnimationEnd() {
        Toast.makeText(MainActivity.this, "Animation is End", Toast.LENGTH_SHORT).show();
    }
});

Import

Step 1. Add it in your project's build.gradle at the end of repositories:

repositories {
    maven {
        url 'https://dl.bintray.com/wangyuwei/maven'
    }
}

Step 2. Add the dependency:

dependencies {
  compile 'me.wangyuwei:ParticleView:1.0.4'
}

About Me

Weibo

Blog

QQ Group 欢迎讨论

479729938

##License

Copyright [2016] [JeasonWong of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
The lib can make the ActivityOptions animations use in Android api3.1+
The lib can make the ActivityOptions animations use in Android api3.1+

ActivityOptionsICS 本项目停止维护 =========== f you are thinking on customizing the animation of Activity transition then probably you would look for Activit

An android project presenting some transitions you can use between activities

ActivityTransition An android project presenting some transitions you can use between activities #Integration Add the anim folder to your Android proj

💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc.
💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc.

The article on how this library was created is now published. You can read it on this link here. →. 💳 EasyFlipView Built with ❤︎ by Wajahat Karim and

Cute view animation collection.
Cute view animation collection.

Android View Animations One day, I saw an iOS library, which is a view shaker, it's very beautiful. I think Android also need one, and should be bette

A beautiful ripple animation for your app
A beautiful ripple animation for your app

Android Ripple Background A beautiful ripple animation for your app. You can easily change its color, speed of wave, one ripple or multiple ripples. S

ArcAnimator helps to create arc transition animation: 2.3.+
ArcAnimator helps to create arc transition animation: 2.3.+

ArcAnimator ArcAnimator helps to create arc transition animation: 14+ | ArcAnimator Demo | TransitionLoop Demo* *TransitionLoop Prototype by Min-Sang

[] Android library for using the Honeycomb animation API on all versions of the platform back to 1.0!

DEPRECATED NineOldAndroids is deprecated. No new development will be taking place. Existing versions will (of course) continue to function. New applic

BaseAnimation network Android animation set, custom controls, nearly 200 kinds of source code! BaseAnimation, if a new version is updated automatically to remind everyone, I hope everyone will contribute their animated XML files or other source, together to create this open source app! A motion-driven animation framework for Android.
A motion-driven animation framework for Android.

Backboard A motion-driven animation framework for Android. backboard is a framework on top of rebound that makes it easier to use by coupling it to vi

Comments
  • 每次一用就报错?6.0有兼容吗?

    每次一用就报错?6.0有兼容吗?

    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zjipst.zhouxiong.testapp/com.zjipst.zhouxiong.testapp.ui.activity.StartActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2444) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2504) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:5546) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:682) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference at android.animation.PropertyValuesHolder.setObjectValues(PropertyValuesHolder.java:638) at android.animation.PropertyValuesHolder.ofObject(PropertyValuesHolder.java:398) at android.animation.ValueAnimator.setObjectValues(ValueAnimator.java:480) at android.animation.ValueAnimator.ofObject(ValueAnimator.java:396) at me.wangyuwei.particleview.ParticleView.startParticleAnim(ParticleView.java:196) at me.wangyuwei.particleview.ParticleView.startAnim(ParticleView.java:292) at com.zjipst.zhouxiong.testapp.ui.activity.StartActivity.onCreate(StartActivity.java:22) at android.app.Activity.performCreate(Activity.java:6323) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2397) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2504)  at android.app.ActivityThread.-wrap11(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:150)  at android.app.ActivityThread.main(ActivityThread.java:5546)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:682)  java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference at android.animation.PropertyValuesHolder.setObjectValues(PropertyValuesHolder.java:638) at android.animation.PropertyValuesHolder.ofObject(PropertyValuesHolder.java:398) at android.animation.ValueAnimator.setObjectValues(ValueAnimator.java:480) at android.animation.ValueAnimator.ofObject(ValueAnimator.java:396) at me.wangyuwei.particleview.ParticleView.startParticleAnim(ParticleView.java:196) at me.wangyuwei.particleview.ParticleView.startAnim(ParticleView.java:292) at com.zjipst.zhouxiong.testapp.ui.activity.StartActivity.onCreate(StartActivity.java:22) at android.app.Activity.performCreate(Activity.java:6323) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2397) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2504) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:150) at android.app.ActivityThread.main(ActivityThread.java:5546) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792) at com.andro

    opened by DearZack 3
  • Animation Listener not working properly

    Animation Listener not working properly

    particleView.setOnParticleAnimListener(new ParticleView.ParticleAnimListener() { @Override public void onAnimationEnd() { doSomething(); } }); particleView.startAnim();

    the doSomething() method is being called immediaelly and not at the end of animation !

    opened by ma-altaiir 0
  • create two animations

    create two animations

    i am trying to create two animation in the sama splash activity , but it's only the first one that is shown (i am starting the second one after the end of the first one ).

    opened by leonidas79 0
  • Getting null pointer exception

    Getting null pointer exception

    Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference

    me.wangyuwei.particleview.ParticleView.startParticleAnim (Unknown Source) me.wangyuwei.particleview.ParticleView.access$1000 (Unknown Source) me.wangyuwei.particleview.ParticleView$10.run (Unknown Source)

    opened by kingoroot 1
Owner
巴掌
巴掌
Animated-splash-screen - Animate your Splash Screen using Lottie files.

Animated Splash Screen This small project shows how you can add animation into your android projects or create beautiful looking Splash Screen or Laun

Aashish Ace 0 Jan 2, 2022
Chandrasekar Kuppusamy 799 Nov 14, 2022
A Simple Todo app design in Flutter to keep track of your task on daily basis. Its build on BLoC Pattern. You can add a project, labels, and due-date to your task also you can sort your task on the basis of project, label, and dates

WhatTodo Life can feel overwhelming. But it doesn’t have to. A Simple To-do app design in flutter to keep track of your task on daily basis. You can a

Burhanuddin Rashid 1k Jan 1, 2023
Sophisticated and cool intro with Material Motion Animation

☯️Sophisticated and cool intro with Material Motion Animations(No more viewpager transformer)

Ranbir Singh 34 Sep 8, 2022
Android Animation Easing Functions. Let's make animation more real!

Android Easing Functions This project is originally from my another project, AndroidViewAnimation, which is an animation collection, to help you make

代码家 2.5k Jan 4, 2023
Lightweight Android library for cool activity transition animations

Bungee min SDK 16 (Android Jellybean 4.1) written in Java A lightweight, easy-to-use Android library that provides awesome activity transition animati

Dean Spencer 172 Nov 18, 2022
☯️Sophisticated and cool intro with Material Motion Animations(No more viewpager transformer or Memory leak)

Material Intro Sophisticated and cool intro with Material Motion Animations. Who's using Material Intro? ?? Check out who's using Material Intro Inclu

Ranbir Singh 34 Sep 8, 2022
A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android

android-flip Aphid FlipView is a UI component to accomplish the flipping animation like Flipboard does. A pre-built demo APK file for Android OS 2.2+

Bo 2.8k Dec 21, 2022
Road Runner is a library for android which allow you to make your own loading animation using a SVG image

Road Runner Road Runner is a library for android which allow you to make your own loading animation using a SVG image Sample video View in Youtube Dem

Adrián Lomas 1.2k Nov 18, 2022
FadingToolbar is an animation library which fades out your footer view in a ScrollView/RecyclerView and fades in a toolbar title

FadingToolbar is an animation library which fades out your footer view in a ScrollView/RecyclerView and fades in a toolbar title (analogue of the LargeTitle animation in iOS)

Hanna 9 Nov 3, 2022