twitter like animation for any view 💓
for ImageView
for Button
for TextView
for any?...
DEMO
dependencies {
compile 'hanks.xyz:smallbang-library:0.1.2'
}
mSmallBang = SmallBang.attach2Window(this);
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);
Please fell free to contact me if there is any problem when using the library.
- email: [email protected]
- twitter: https://twitter.com/zhangyuhan3030
- weibo: https://weibo.com/hanksZyh
- blog: https://hanks.xyz
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.