Top "Android-databinding" questions

Data Binding Library to write declarative layouts and minimize the glue code necessary to bind your application logic and layouts.

Create two-way binding with Android Data Binding

I have implemented the new Android data-binding, and after implementing realised that it does not support two-way binding. I have …

android android-edittext android-databinding
Cannot find the setter for attribute with parameter

I am working on DataBinding with BindingAdapter. Here is my custom method. @BindingAdapter("{bind:fadevisible}") public static void setFadeVisible(LinearLayout …

android data-binding android-databinding
DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.buildFeatures.dataBinding'

Gets following warning when building the project DSL element 'android.dataBinding.enabled' is obsolete and has been replaced with 'android.…

android android-databinding
Two-Way databinding in EditText

I have this object ObservableInt someNumber; public ObservableInt getSomeNumber() { return someNumber; } public void setSomeNumber(ObservableInt number) { this.someNumber = number; } and …

android android-databinding
Android data binding : view does not update when property is changed

let me first start with showing the code: build.gradle (module): android { compileSdkVersion 24 buildToolsVersion "24.0.2" dataBinding { enabled = true } defaultConfig { applicationId "com.…

java android observable android-databinding
Android Databinding : package does not exist

I'm trying to use data-binding with Android. I can not anymore build my project. I got this error : "Error:(13, 46) error: …

android data-binding android-databinding
Android Data Binding @BindingConversion failure for int to string

Ran into a mysterious problem when trying to make a @BindingConversion for int to string. The following code works for …

android data-binding android-databinding
data binding - safeUnbox warning

after i upgrade AS gradle version to 2.3.0, data binding encounter a warning : Warning:selectMap[index] is a boxed field but …

android data-binding android-gradle-plugin warnings android-databinding
Set text color using data binding on Android

I'm trying to set TextView text color using data binding library android:textColor="@{holder.getTitleColor(context, item)}" where the method …

android android-databinding
Data Binding Android - Type parameter T has incompatible upper bounds : ViewDataBinding and MainActivity

I am using Android Studio 2.0 Preview 4. I'm using Android SDK tools 25 rc1. This error persists no matter how many times …

android data-binding android-databinding