Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin1/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChadCym committed Apr 12, 2016
2 parents 9f68376 + 79b520f commit 3bbb2b4
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# BaseRecyclerViewAdapterHelper
![列表.png](http://upload-images.jianshu.io/upload_images/972352-13b1f76ee8190734.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![Custom.gif](http://upload-images.jianshu.io/upload_images/972352-fa0a573a979ef2c2.gif?imageMogr2/auto-orient/strip)
![AlphaIn_ScaleIn.gif](http://upload-images.jianshu.io/upload_images/972352-3f1e75657fe6e501.gif?imageMogr2/auto-orient/strip)
![SlideInBottom_SlideInLeft.gif](http://upload-images.jianshu.io/upload_images/972352-78a905bee10243e8.gif?imageMogr2/auto-orient/strip)

##[中文介绍](http://www.jianshu.com/p/411ab861034f)
# Get it
Expand All @@ -16,7 +18,7 @@ Add it in your root build.gradle at the end of repositories:
Add the dependency
```
dependencies {
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.1'
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.2'
}
```

Expand All @@ -39,12 +41,30 @@ public class QuickAdapter extends BaseQuickAdapter<Status> {
}
}
```
#Use Animation
```
// Turn animation
quickAdapter.openLoadAnimation();
// Turn animation and set animate
quickAdapter.openLoadAnimation(BaseQuickAdapter.ALPHAIN);
// Turn animation and set custom animate
quickAdapter.openLoadAnimation(new BaseAnimation() {
@Override
public Animator[] getAnimators(View view) {
return new Animator[]{
ObjectAnimator.ofFloat(view, "scaleY", 1, 1.1f, 1),
ObjectAnimator.ofFloat(view, "scaleX", 1, 1.1f, 1)
};
}
});
```
#Features
## BaseQuickAdapter
* ```setOnRecyclerViewItemClickListener()```
* ```openLoadAnimation()```
* ```setFirstOnly()```

## BaseViewHolder

* ```setText()``` Calls ```setText(String)``` on any TextView.
* ```setAlpha()``` Calls ```setAlpha(float)``` on any View.
* ```setVisible()``` Calls ```setVisibility(int)``` on any View.
Expand Down

0 comments on commit 3bbb2b4

Please sign in to comment.