Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xujinyang committed Dec 14, 2015
1 parent ff8ba81 commit c9eff7a
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 6 deletions.
74 changes: 74 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# BiuEditText
还记得有一招从天而降的功夫?GiftRainView,一个用来下金币,下红包的View

# 直接看效果

![](http://7o4zmy.com1.z0.glb.clouddn.com/2015-12-14%2022_21_24.gif)

# 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)
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ buildscript {

//上传版本
// classpath 'com.github.dcendents:android-maven-plugin:1.2'
// gradlew install
// gradlew bintrayUpload
// gradle install
// gradle bintrayUpload

}
}
Expand Down
8 changes: 4 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ ext {
bintrayName = 'GiftRainView'

publishedGroupId = 'com.xujinyang.GiftRainView'
libraryName = 'BiuEditText'
libraryName = 'GiftRainView'
artifact = 'library'

libraryDescription = '还记得有一招从天而降的功夫?GiftRainView,一个用来下金币,下红包的View'

siteUrl = 'https://github.com/xujinyang/GiftRainView'
gitUrl = 'https://github.com/xujinyang/GiftRainView.git'

libraryVersion = '1.3.0'
libraryVersion = '1.0.0'

developerId = 'xujinyang'
developerName = 'xiaoxiao'
Expand All @@ -31,8 +31,8 @@ android {
defaultConfig {
minSdkVersion 11
targetSdkVersion 22
versionCode 3
versionName "1.3.0"
versionCode 1
versionName "1.0.0"
}
buildTypes {
release {
Expand Down

0 comments on commit c9eff7a

Please sign in to comment.