Top "Android-databinding" questions

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

Androidx and databinding

I'm migrating my dependencies for an Android P test to the androidx dependencies. For some not very clear reasons my …

android android-support-library android-databinding androidx android-architecture
Data Binding with srcCompat

I'm using the new vector drawable support in Support Lib v23.2 with app:srcCompat & trying to set its drawable …

android android-support-library android-databinding
Android databinding set padding if value is true

I want to be able to to be able to set padding values if a boolean is true. The problem …

android android-layout android-studio android-databinding
Possible reason for "Error:cannot generate view binders java.lang.NullPointerException"

I am using Android Studio for my Android projects. I faced an issue when builds crash with strange stacktrace, like …

java android data-binding nullpointerexception android-databinding
Duplicate class found in the file '/activity_login.xml' DataBinding, BR not being generated

I mostly being stuck with android data binding BR issue. There is single activity.xml always but generated binding class …

android mvvm data-binding viewmodel android-databinding
Two-way databinding(in xml), ObservableField, BaseObservable , which one I should use for the two-way databinding?

I have used data-binding for a while, even now it is not available for JDK 8 and API 24 now. I still …

android android-databinding
ActivityMainBindingImpl cannot be found

This is from the google site: A binding class is generated for each layout file. By default, the name of …

android android-databinding kotlin-android-extensions
Android data binding is not working with <merge> attributes

I'm trying to use databinding with custom views (a possible usage George Mount showed here). One can't imagine building compound …

android data-binding android-databinding
Unresolved reference: BR (Android Studio)

My top level build.gradle: buildscript { ext.kotlin_version = '1.2.41' ext.lifecycle_version = "1.1.1" repositories { google() jcenter() } dependencies { classpath 'com.…

android-studio kotlin android-databinding
How to handle onClick or onTouch like events in ViewModel with data binding in MVVM Android

I have gone through many blogs related to MVVM model with Data Binding. As data binding with ViewModel makes it …

android mvvm android-databinding android-viewmodel android-mvvm