BalloonPerformer
??
??????????????????????????????? ????TT????
???????
????????????????????????
??????
??????????????????????????????????????????
???????????????????????
?????
- Gradle??
dependencies {
compile 'com.tt:balloonperformerlibrary:1.0.2'
}
- ????????
Config.Builder builder = new Config.Builder(MainActivity.this);
Config config = builder.pullSensitivity(2.0f).lineLength(64).isOnlyDestop(false).flyDuration(3000).balloonCount(6).create();
BalloonPerformer????????????
?? | ?? | ?? | ??? |
---|---|---|---|
BalloonCount | int | ???? | 5 |
FlyDuration | long | ???? | 2500?? |
LineLength | int | ???? | 72px |
PullSensitivity | float | ????? | 1.8f |
isOnlyDestop | boolean | ???????? | false |
- ??????????
BalloonPerformer.getInstance().init(MainActivity.this, config);
??????Config????????????
- ?????
BalloonPerformer.getInstance().show(MainActivity.this, new BalloonGroup.OnBalloonFlyedListener() {
@Override
public void onBalloonFlyed() {
//do something
}
}
);
- ?????
BalloonPerformer.getInstance().gone(MainActivity.this);
??
??
License
Copyright (c) 2015 Kyson
Licensed under the Apache License, Version 2.0