As you may know Google introduced support for LiveData with Data Binding in Android Studio 3.1 Canary 6.
Learn to use LiveData + Databinding
" 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 "
Feel free to report or add any useful feature, I will be glad to improve it with your help.
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.
- Erik Jhordan Rey - [email protected]
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.