Skip to content

Commit

Permalink
rm MultipleItemAdapter,
Browse files Browse the repository at this point in the history
rm BaseQuickAdapter(View contentView, List<T> data)
  • Loading branch information
ChadCym committed Oct 25, 2016
1 parent 8428099 commit 55881de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 71 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public abstract class BaseQuickAdapter<T, K extends BaseViewHolder> extends Recy
private LinearLayout mCopyHeaderLayout = null;
private LinearLayout mCopyFooterLayout = null;
private int pageSize = -1;
private View mContentView;
/**
* View to show if there are no items to show.
*/
Expand Down Expand Up @@ -175,11 +174,6 @@ public BaseQuickAdapter(List<T> data) {
this(0, data);
}

public BaseQuickAdapter(View contentView, List<T> data) {
this(0, data);
mContentView = contentView;
}

/**
* remove the item associated with the specified position of adapter
*
Expand Down Expand Up @@ -617,15 +611,13 @@ protected K onCreateDefViewHolder(ViewGroup parent, int viewType) {
}

protected K createBaseViewHolder(ViewGroup parent, int layoutResId) {
if (mContentView == null) {
return createBaseViewHolder(getItemView(layoutResId, parent));
}
return createBaseViewHolder(mContentView);
return createBaseViewHolder(getItemView(layoutResId, parent));
}

/**
* if you want to use subclass of BaseViewHolder in the adapter,
* you must override the method to create new ViewHolder.
*
* @param view view
* @return new ViewHolder
*/
Expand Down Expand Up @@ -671,7 +663,6 @@ public void addHeaderView(View header, int index) {
}

/**
*
* @param header
* @param index
* @param orientation
Expand Down Expand Up @@ -862,7 +853,7 @@ public View getEmptyView() {


/**
* Finished pull to refresh on the load
* Finished pull to refresh on the load
*/
public void loadComplete() {
mNextLoadEnable = false;
Expand Down

0 comments on commit 55881de

Please sign in to comment.