Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leochuan committed Apr 28, 2017
1 parent 6930aa2 commit 0064df7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All you need to concern about is which the property you want to change and how i
## Usage
#### Gradle
```Java
compile 'rouchuan.customlayoutmanager:customlayoutmanager:1.0.4'
compile 'rouchuan.customlayoutmanager:customlayoutmanager:1.0.5'
```
#### Default Properties
```Java
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package rouchuan.customlayoutmanager;

import android.support.v7.widget.RecyclerView;
import android.util.Log;


/**
Expand All @@ -11,6 +12,7 @@ public class CenterScrollListener extends RecyclerView.OnScrollListener{

@Override
public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
Log.e("state",newState+"");
super.onScrollStateChanged(recyclerView, newState);
final RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager();
if(!(layoutManager instanceof CustomLayoutManager)){
Expand Down

0 comments on commit 0064df7

Please sign in to comment.