• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    Kotlin
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DataBinding-ktx make easy to use DataBinding.

DataBinding-ktx

DataBinding-ktx make easy to use DataBinding.

ViewBinding-ktx is here.

Overview

  • DataBinding-ktx is automatically calling setLifecycleOwner.
  • DataBinding-ktx provides withBinding method accessing the binding variable by lambda.
  • [Deprecated] DataBinding-ktx provides dataBinding method accessing the binding variable by delegated property.

Usage

Lambda

withBinding<DataBindingActivityBinding> { binding ->

}

Delegated Property

private val binding: DataBindingActivityBinding by dataBinding()

Note: In Fragment, When fragment's view is destroyed, an IllegalStateException is thrown on accessing the binding property.
If you access the binding property when fragment's view may be destroyed, you must use the Lambda way above.

Gradle

Maven Central

android {
    buildFeatures {
        dataBinding = true
    }
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.wada811.databindingktx:databindingktx:x.y.z'
}

Migrations

7.0.0

dependencies

-    implementation 'com.github.wada811:DataBinding-ktx:x.y.z'
+    implementation 'com.wada811.databindingktx:databindingktx:x.y.z'

package

-import com.wada811.databinding
+import com.wada811.databindingktx

License

Copyright (C) 2020 wada811

Licensed under the Apache License, Version 2.0

More Repositories

1

Android-Material-Design-Colors

Android Material Design Colors
Java
197
star
2

Android-DialogFragments

Various DialogFragments for Android.
Java
79
star
3

ViewBinding-ktx

ViewBinding-ktx make easy to use ViewBinding.
Kotlin
35
star
4

LifecycleDispose

Dispose automatically RxJava streams using AAC Lifecycle.
Kotlin
26
star
5

ViewModel-SavedState-ktx

ViewModel-SavedState-ktx make easy handling saved state by delegated property.
Kotlin
21
star
6

DependencyProperty

DependencyProperty is a dependency resolution library by Delegated Property.
Kotlin
9
star
7

blog

wada811's blog
6
star
8

Android-ViewPagerIndicator

Convert to Android Studio Project format from
Java
6
star
9

AndroidLibrary-wada811

Java
6
star
10

Android-Paint

wada811/Android-Paint
Java
6
star
11

ViewLifecycleProperty

ViewLifecycleProperty makes easy declaring the property that has the same lifecycle as Fragment's view.
Kotlin
6
star
12

PubSubMessenger

PubSubMessenger is a Pub/Sub pattern library from ViewModel/Fragment to Activity/Fragment.
Kotlin
5
star
13

View-SavedState-ktx

View-SavedState-ktx make easy handling saved state by delegated property.
Kotlin
5
star
14

ImmutablePendingIntent

ImmutablePendingIntent provides mutability safe methods and quick fix.
Kotlin
5
star
15

ADB-Tools

ADB-Tools is more useful adb commands.
Shell
4
star
16

DisableCamera

Java
3
star
17

dotfiles

dotfilesをGitHubで管理する方法
Shell
3
star
18

kotlinize-pr-plugin

IntelliJ IDEA Plugin that convert java file to kotlin file and create pull request on GitHub.
Kotlin
3
star
19

Android-JUnit4

Java
2
star
20

wada811.com

wada811.com
HTML
2
star
21

android-support-v7-appcompat-extended

android-support-v7-appcompat-extended
Groovy
2
star
22

ax

AX provides extension functions and lint.
Kotlin
2
star
23

Android-VerticalSeekBar

wada811/Android-VerticalSeekBar
Java
2
star
24

Android-ExpandableListFragment

Android-ExpandableListFragment
Java
1
star
25

KeepScreenOn

Java
1
star
26

ImageViewScaling

Android ImageView Scaling Test Project
Java
1
star
27

Xamarin.Android.ViewPagerIndicator

Port for Xamarin.Android from
C#
1
star
28

YouTubeForBaby

Kotlin
1
star
29

sample

HTML/CSS/JavaScript Sample Pages
JavaScript
1
star
30

AtCoder

AtCoder http://atcoder.jp/
PHP
1
star
31

Android-View-Drag-And-Drop-Sample

Java
1
star
32

DaysCounter

Days Counter widget. - Google Play の Android アプリ
Java
1
star
33

Android-DatePicker-Sample

[Android] DatePicker のレイアウトのフラグがカオスな件について
Java
1
star