Skip to content

Commit

Permalink
Merge pull request #5 from githubzaibao/master
Browse files Browse the repository at this point in the history
a little 1.0
  • Loading branch information
CymChad committed Apr 21, 2016
2 parents 6c6a8cf + 47bce85 commit 143b657
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 9 additions & 27 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {

}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.android.tools.build:gradle:2.0.0'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public abstract class BaseQuickAdapter<T> extends RecyclerView.Adapter<RecyclerView.ViewHolder> {

private boolean mNextLoadEnable;
private boolean mLoadingMoreEnable;
private boolean mLoadingMoreEnable = false;
private boolean mFirstOnlyEnable = true;
private boolean mOpenAnimationEnable = false;

Expand All @@ -45,23 +45,24 @@ public abstract class BaseQuickAdapter<T> extends RecyclerView.Adapter<RecyclerV
/**
* Use with {@link #openLoadAnimation}
*/
public static final int ALPHAIN = 0x00000001;
public static final int ALPHAIN = 1 << 1;
/**
* Use with {@link #openLoadAnimation}
*/
public static final int SCALEIN = 0x00000010;
public static final int SCALEIN = 1 << 2;
/**
* Use with {@link #openLoadAnimation}
*/
public static final int SLIDEIN_BOTTOM = 0x00000011;
public static final int SLIDEIN_BOTTOM = 1 << 3;
/**
* Use with {@link #openLoadAnimation}
*/
public static final int SLIDEIN_LEFT = 0x00000100;
public static final int SLIDEIN_LEFT = 1 << 4;
/**
* Use with {@link #openLoadAnimation}
*/
public static final int SLIDEIN_RIGHT = 0x00000101;
public static final int SLIDEIN_RIGHT = 1 << 5;



protected static final String TAG = BaseQuickAdapter.class.getSimpleName();
Expand All @@ -86,19 +87,20 @@ public abstract class BaseQuickAdapter<T> extends RecyclerView.Adapter<RecyclerV
@AnimationType
private BaseAnimation mCustomAnimation;
private BaseAnimation mSelectAnimation = new AlphaInAnimation();


protected static final int HEADER_VIEW = 0x00000110;
protected static final int LOADING_VIEW = 0x00000111;
protected static final int FOOTER_VIEW = 0x00001000;

protected static final int HEADER_VIEW = 1 << 6;
protected static final int LOADING_VIEW = 1 << 7;
protected static final int FOOTER_VIEW = 1 << 8;
private View mHeaderView;
private View mFooterView;

@Deprecated
public void setOnLoadMoreListener(int pageSize, RequestLoadMoreListener requestLoadMoreListener) {
if (getItemCount() < pageSize) {
return;
}

setOnLoadMoreListener(requestLoadMoreListener);
}

public void setOnLoadMoreListener(RequestLoadMoreListener requestLoadMoreListener) {

mNextLoadEnable = true;
this.mRequestLoadMoreListener = requestLoadMoreListener;
}
Expand Down Expand Up @@ -189,7 +191,6 @@ public BaseViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {

}


protected BaseViewHolder onCreateDefViewHolder(ViewGroup parent, int viewType) {
return new ContentViewHolder(getItemView(mLayoutResId, parent));
}
Expand Down

0 comments on commit 143b657

Please sign in to comment.