LiveData-DataBinding-Kotlin
LiveData-DataBinding-Kotlin copied to clipboard
Sample to practice LiveData + DataBinding
LiveData-DataBinding-Kotlin
As you may know Google introduced support for LiveData with Data Binding in Android Studio 3.1 Canary 6.
Project Goal
Learn to use LiveData + Databinding
LiveData + Data Binding
" You can now use a LiveData object as an observable field in data binding expressions. The ViewDataBinding class now includes a new setLifecycle method that you need to use to use to observe LiveData objects "
Demo

Do you want to contribute?
Feel free to report or add any useful feature, I will be glad to improve it with your help.
Code style
This project is written on Kotlin and uses ktlint.
If you find that one of your pull reviews does not pass the CI server check due to a code style conflict, you can
easily fix it by running: ./gradlew ktlintFormat
, or running IntelliJ/Android Studio's code formatter.
Developed By
- Erik Jhordan Rey - [email protected]
License
Copyright 2017 Erik Jhordan Rey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.