- Android UI Libs之ExplosionField
- Android UI Libs之android-viewbadg
- Android UI Libs之android-stackblu
- Android UI Libs之Android-Observab
- Android UI Libs之NumberProgressBa
- Android UI Libs之AndroidSwipeLayo
- Android UI Libs之ExpandableLayout
- Android UI Libs之SwipeToLoadLayou
- Android UI Libs之DiscreteSeekBar
- Android UI Libs之CircleIndicator
Android UI Libs之ExplosionField
1. 说明
ExplosionField让视图爆炸成粉尘效果。

2.配置
在模块的build.gradle上面添加依赖
dependencies {
compile 'tyrantgit:explosionfield:1.0.1'
}
3. 基本使用
点击一个按钮让icon
与image
爆炸
this.image = (ImageView) findViewById(R.id.image);
this.button = (Button) findViewById(R.id.button);
this.icon = (ImageView) findViewById(R.id.icon);
//创建ExplosionField对象
final ExplosionField mExplosionField = ExplosionField.attach2Window(this);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//让icon爆炸
mExplosionField.explode(icon);
//让image爆炸
mExplosionField.explode(image);
}
});
程序界面如下:

程序源代码下载,我的github仓库:UILibs
网友评论