-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# BiuEditText | ||
还记得有一招从天而降的功夫?GiftRainView,一个用来下金币,下红包的View | ||
|
||
# 直接看效果 | ||
|
||
 | ||
|
||
# Usage | ||
### Step 1 | ||
##### Install with gradle | ||
dependencies { | ||
compile 'com.xujinyang.GiftRainView:library:1.0.0' | ||
} | ||
### Step 2 | ||
|
||
<me.jamesxu.giftrainview.GiftRainView | ||
android:id="@+id/dropview" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:gift_background="@android:color/white" | ||
app:gift_count="20" | ||
app:gift_duration="2000" /> | ||
|
||
|
||
|
||
####attrs: | ||
|
||
| 参数 | 类型 |含义| | ||
|--------|--------|--------| | ||
|gift_background|color|背景颜色| | ||
|gift_count|integer|屏幕内物体数量| | ||
|gift_duration|integer|动画时长| | ||
|
||
### Step 3 | ||
``` | ||
public class MainActivity extends Activity { | ||
private GiftRainView giftRainView; | ||
@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); | ||
} | ||
} | ||
``` | ||
|
||
License | ||
-------- | ||
GiftRainView is opensource, contribution and feedback are welcomed | ||
|
||
[Apache Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html) | ||
|
||
Copyright 2015 Supercharge | ||
|
||
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 | ||
|
||
http://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 me | ||
[CSDN](http://blog.csdn.net/mobilexu) | ||
|
||
[weibo](http://weibo.com/3654795601/profile?topnav=1&wvr=6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters