Skip to content

Instantly share code, notes, and snippets.

@alexshr
Last active Apr 18, 2020
Embed
What would you like to do?
fragment binding delegate
allprojects {
repositories {
.......
maven { url "https://jitpack.io" }
}
--------------------
//ext lib
implementation 'com.github.wada811:DataBinding-ktx:2.0.2'
-------------------------------------
//https://medium.com/databinding-ktx/android-databinding-ktx-2-0-0-released-dbcf8b06346a
private val binding: FragmentDevByteBinding by dataBinding(R.layout.fragment_dev_byte)
----------------
my sample:
https://github.com/alexshr/android-kotlin-fundamentals-apps/blob/master/DevBytesWorkManager/app/src/main/java/com/example/android/devbyteviewer/ui/DevByteFragment.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment