Skip to content

Commit 4921f46

Browse files
committed
doc: update ReadMe.md
2 parents ed850fc + 814569a commit 4921f46

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Common RecyclerView Adapter
22

33
* Create a list of different views with its different or the same set of data to bind without the boilerplate code in the RecyclerView Adapter.
4-
* Use a single adapter for different lists in your entire app.
4+
* Use a single adapter for all the recyclerviews in your app.
5+
* Current version: 1.0.1-snapshot01
6+
* Built on top of RecyclerView, Databinding
57

68
Current version: 1.0.2
79

@@ -33,14 +35,14 @@ data class StatusFeedItemHolder(
3335
) : CommonItemHolder<StatusModel>
3436
```
3537

36-
### Extend CommonRecyclerViewAdapter when creating an adapter.
38+
### Extend CommonRecyclerViewAdapter.
3739
```
3840
class AppRecyclerViewAdapter(
3941
listCommonHolder: MutableList<CommonItemHolder<*>>
4042
) : CommonRecyclerViewAdapter(listCommonHolder)
4143
```
4244

43-
### Initialise your adapter with the list of CommonItems.
45+
### Initialise the adapter.
4446
```
4547
private val sampleMovieList = mutableListOf<CommonItemHolder<*>>()
4648
private lateinit var recyclerViewAdapter: CommonRecyclerViewAdapter
@@ -50,7 +52,7 @@ recyclerViewAdapter = AppRecyclerViewAdapter(
5052
)
5153
```
5254

53-
### Adding an item click listener.
55+
### Optional: Add item click listener.
5456
```
5557
recyclerViewAdapter.setItemClickListener { pos, data, view ->
5658
//Code here

0 commit comments

Comments
 (0)