Skip to content

Commit

Permalink
添加根据position获取对应item
Browse files Browse the repository at this point in the history
  • Loading branch information
crazysunj committed Jul 11, 2018
1 parent a5164d0 commit 8f8b866
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,16 @@ public int getItemViewType(int position) {
return DEFAULT_VIEW_TYPE;
}

/**
* 根据索引返回item
*
* @param position 索引
* @return 返回的item
*/
public T getItem(int position) {
return mData.get(position);
}

/**
* 链式注册moudle
*
Expand Down

0 comments on commit 8f8b866

Please sign in to comment.