Skip to content

Commit a90fda4

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 9b6df90 + 35a67f0 commit a90fda4

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# android-data-binding-recyclerview
1+
# Android Data Binding + RecyclerView
22
Using Recyclerview with the new Android Data Binding framework.
33

44
![demo](https://cloud.githubusercontent.com/assets/469111/7898771/36df1504-070b-11e5-95d5-d8ca0aaf50dd.gif)
@@ -12,19 +12,18 @@ Just clone this repository and start playing with it! If you want to use some pa
1212
### Change your gradle file
1313

1414
- In your main build.gradle add:
15-
16-
17-
classpath 'com.android.tools.build:gradle:1.3.0-beta1'
18-
classpath "com.android.databinding:dataBinder:1.0-rc0"
19-
20-
15+
16+
```gradle
17+
classpath 'com.android.tools.build:gradle:1.3.0-beta1'
18+
classpath "com.android.databinding:dataBinder:1.0-rc0"
19+
```
2120

2221
- In your app build.gradle add:
2322

2423

25-
26-
apply plugin: 'com.android.databinding'
27-
24+
```gradle
25+
apply plugin: 'com.android.databinding'
26+
```
2827

2928

3029

@@ -75,7 +74,6 @@ Remember to use your classes and packages ;-).
7574
```java
7675
public class UsersViewModel extends BaseObservable
7776
{
78-
@Bindable
7977
public ObservableArrayList<UserViewModel> users;
8078

8179
public ItemBinder<UserViewModel> itemViewBinder()
@@ -98,4 +96,4 @@ Next thing is __ItemViewBinder__. This class is used in __BindingRecyclerViewAd
9896
}
9997
```
10098

101-
Please look at **UsersView.java** and **UsersViewModel.java** if something is unclear.
99+
Please look at **UsersView.java** and **UsersViewModel.java** if something is unclear.

0 commit comments

Comments
 (0)