From 31a4a6b87ad5e8eea0dfe409131ec828b97ff18d Mon Sep 17 00:00:00 2001 From: Harlan Date: Mon, 24 Oct 2016 15:44:46 +0800 Subject: [PATCH] Update README-cn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加自定义ViewHolder的说明 --- README-cn.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README-cn.md b/README-cn.md index 0161a4ec3..3ac7c94ca 100644 --- a/README-cn.md +++ b/README-cn.md @@ -402,6 +402,16 @@ public class ExpandableUseActivity extends Activity { } ``` +Use Custom BaseViewHolder +```Java + +// 当使用自定义的BaseViewHolder时,需要重写此函数以创建ViewHolder +protected K createBaseViewHolder(View view) { + return (K) new BaseViewHolder(view); +} + +``` + >**持续更新!,所以推荐Star项目** #感谢