From 0bd0cededeca5ce31b399a53e57c2dd46a03d192 Mon Sep 17 00:00:00 2001 From: Fitz Date: Wed, 25 Mar 2020 19:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=8B=B1=E6=96=87=E7=89=88?= =?UTF-8?q?=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README_EN.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README_EN.md b/README_EN.md index 77fd1340b..ee09dfa20 100644 --- a/README_EN.md +++ b/README_EN.md @@ -71,16 +71,16 @@ public class SimpleTextModel { -#### Step 2 : Create a custom `FlapItem` : +#### Step 2 : Create a custom `FlapComponent` : -NOTE: `FlapItem` is the base `ViewHolder` that `Flap` is using internally. +NOTE: `FlapComponent` is the base `ViewHolder` that `Flap` is using internally. Here is a sample : ```java @Component(layoutId = R.layout.flap_item_simple_text) -public class SimpleTextItem extends FlapItem { +public class SimpleTextItem extends FlapComponent { private static final String TAG = "SimpleTextItem"; @@ -129,7 +129,7 @@ Yeah , you are good to go! ## More Advanced Features -`Flap` adds some features for `FlapItem` : +`Flap` adds some features for `FlapComponent` : 1. Access a context directly by field `context`. 2. Call `findViewById()` directlly instead of `itemView.findViewById` when you want to find a view. @@ -170,7 +170,7 @@ Check [Releases](https://github.com/AlanCheen/Flap/releases) for details. - [x] Support AsyncListDiffer feature; - [x] Support setup global RecycledViewPool; -- [x] Support Lifecycle for FlapItem; +- [x] Support Lifecycle for FlapComponent; - [x] Decouple RecyclerView.Adapter and ViewHolder's creating and binding logic.