Skip to content

Commit adebf08

Browse files
committed
Improve README
1 parent c4e7df0 commit adebf08

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

README.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,32 +36,24 @@ dependencies {
3636
}
3737
```
3838

39-
### SNAPSHOT
40-
[![Bindables](https://img.shields.io/static/v1?label=snapshot&message=bindables&logo=apache%20maven&color=C71A36)](https://oss.sonatype.org/content/repositories/snapshots/com/github/skydoves/bindables/) <br>
41-
Snapshots of the current development version of Bindables are available, which track [the latest versions](https://oss.sonatype.org/content/repositories/snapshots/com/github/skydoves/bindables/).
42-
```Gradle
43-
repositories {
44-
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
45-
}
46-
```
47-
4839
## Setup DataBinding
4940
If you already use `DataBinding` in your project, you can skip this step. Add below on your `build.gradle` and make sure to use `DataBinding` in your project.
5041
```gradle
5142
plugins {
52-
...
53-
id 'kotlin-kapt'
43+
..
44+
id('kotlin-kapt')
5445
}
5546
5647
android {
57-
...
48+
..
5849
buildFeatures {
59-
dataBinding true
50+
dataBinding = true
6051
}
6152
}
6253
```
6354

6455
## BindingActivity
56+
6557
`BindingActivity` is a base class for Activities that wish to bind content layout with `DataBindingUtil`. It provides a `binding` property that extends `ViewDataBinding` from abstract information. The `binding` property will be initialized lazily but ensures to be initialized before being called `super.onCreate` in Activities. So we don't need to inflate layouts, setContentView, and initialize a binding property manually.
6658

6759
```kotlin

0 commit comments

Comments
 (0)