Skip to content

0359xiaodong/SmallBang

 
 

Repository files navigation

SmallBang

twitter like animation for any view 💓

for ImageView

ImageView

for Button

for TextView

TextView

for any?...

DEMO

demo

Usage

0. Add the following to your build.gradle file.

dependencies {
    compile 'hanks.xyz:smallbang-library:0.1.2'
}

1. init SmallBang

mSmallBang = SmallBang.attach2Window(this);

2. animate to view

mSmallBang.bang(view);

or

mSmallBang.bang(view,new SmallBangListener() {
    @Override
    public void onAnimationStart() {
    }

    @Override
    public void onAnimationEnd() {
        toast("button +1");
    }
});

or

mSmallBang.bang(view,50,new SmallBangListener() {
    @Override
    public void onAnimationStart() {
    }

    @Override
    public void onAnimationEnd() {
        toast("text+1");
    }
});

other method

/**
  * set different colors for dots, the length should be 2 at least, colors[0] and colors[1] are Big Circle startColor and endColor;
  *
  * @param newColors
  */
 public void setColors(int[] newColors)

 /**
  * set small dot number
  * @param dotNumber
  */
 public void setDotNumber(int dotNumber);

Contact & Help

Please fell free to contact me if there is any problem when using the library.

welcome to commit issue & pr


License

This library is licensed under the Apache Software License, Version 2.0.

See LICENSE for full of the license text.

Copyright (C) 2015 [Hanks](https://github.com/hanks-zyh)

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

    https://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.

About

twitter like animation for any view 💓

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%