Skip to content

Commit

Permalink
update v1.2.0 readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xujinyang committed Dec 18, 2015
1 parent 5d7b280 commit 18d33ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,25 @@
public class MainActivity extends Activity {
private GiftRainView giftRainView;
private boolean isStart;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
giftRainView = (GiftRainView) findViewById(R.id.dropview);
giftRainView.setImages(R.mipmap.ico_money, R.mipmap.ico_gold_money);
}
startRain();
}
```
##### 如果想要动画停止有俩个方式

1. 等界面上所有的物体掉落完了之后,停止。
giftRainView.stopRainDely();
2. 立马停止动画,清空界面
giftRainView.stiopRainNow();


License
--------
Expand Down

0 comments on commit 18d33ee

Please sign in to comment.