Skip to content

Commit d8c11fb

Browse files
committed
Updated readme
1 parent bcfcf48 commit d8c11fb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,21 @@ Remember to use your classes and packages ;-).
7070
}
7171
```
7272

73+
### Modify your ViewModel class
74+
75+
```java
76+
public class UsersViewModel extends BaseObservable
77+
{
78+
@Bindable
79+
public ObservableArrayList<UserViewModel> users;
80+
81+
public ItemBinder<UserViewModel> itemViewBinder()
82+
{
83+
return new ItemBinderBase<UserViewModel>(BR.user, R.layout.item_user);
84+
}
85+
}
86+
```
87+
7388
### Some details
7489

7590
Your ViewModel (__UsersViewModel__ in my example) should have field of __ObservableArrayList<YourClass>__ type which will be bind to recycler view.

0 commit comments

Comments
 (0)