Skip to content

Commit 92c28b5

Browse files
authored
Update README.md
1 parent fe82b1e commit 92c28b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ adapter.addFooterEntity(16, new MyModel(getString(R.string.py_addition_16), true
142142
adapter.addFooterEntity(11, new MyModel(getString(R.string.py_deletion_11), false));
143143
```
144144
<br>
145-
6. You can also add a multiple diff entities, see ```AbstractCodeAdapter<MyModel>.addFooterEntities(HashMap<Int, List<MyModel>>)``` method). Here you must provide a map from code line numbers (started from 0) to list of line entities. It will be mapped by adapter to specified footer views.
145+
6. You can also add a multiple diff entities:
146+
```java
147+
AbstractCodeAdapter<MyModel>.addFooterEntities(HashMap<Int, List<MyModel>> myEntities)
148+
```
149+
Here you must provide a map from code line numbers (started from 0) to list of line entities. It will be mapped by adapter to specified footer views.
146150
<br>
147151

148152
See [Github diff](https://github.com/Softwee/codeview-android/blob/master/codeview/src/main/java/io/github/kbiakov/codeview/adapters/CodeWithDiffsAdapter.kt) as example of my "best practice" implementation.

0 commit comments

Comments
 (0)