Skip to content

Commit

Permalink
Improve README
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Nov 6, 2024
1 parent c4e7df0 commit adebf08
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,24 @@ dependencies {
}
```

### SNAPSHOT
[![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>
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/).
```Gradle
repositories {
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
```

## Setup DataBinding
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.
```gradle
plugins {
...
id 'kotlin-kapt'
..
id('kotlin-kapt')
}
android {
...
..
buildFeatures {
dataBinding true
dataBinding = true
}
}
```

## BindingActivity

`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.

```kotlin
Expand Down

0 comments on commit adebf08

Please sign in to comment.