Category "android-databinding"

Databinding generated in the wrong package

I have several modules in my project and I've renamed one of them (including the packages). This module is an Android Library module with databinding enabled. A

DataBindingUtil is not working after adding safe-args dependency

I'm adding the safe-args dependency: project level: dependencies { classpath 'com.android.tools.build:gradle:3.3.0' classpath "org.jetbrains.kotlin:ko

Unknown DataBinding Class

I am newbie to DataBinding in Android and learning it to my own. I have just enabled the DataBinding in my App Gradle File in the Android Tag as: dataBindin

Data binding: Missing required view with ID

I create an app using binding and I get an error that I couldn't solve. The error is java.lang.RuntimeException: Unable to start activity ComponentInfo{com.exam

Data binding: Missing required view with ID

I create an app using binding and I get an error that I couldn't solve. The error is java.lang.RuntimeException: Unable to start activity ComponentInfo{com.exam

how can i share viewModel between Activities?

I'm learning Android ViewModel now. and I have MainActivity and RegisterActivity which can type name, age, and phone number in there. after typing that informat

IllegalStateException on DataBindingUtil.setContentView: Restoring the Navigation back stack failed, current destination null

For some users, my app seems to crash regularly at or near app start. It's been an issue I've been trying to figure out for a while but I haven't had much succe

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 is that Android studio cannot parse the layout because it thinks 2dp is

Cannot find setter for attribute app:visibleGone

I am trying to implement the MVVM architecture in my android application. I'm using Kotlin for the same. This is my binding adapter class: class BindingAdapte

Android Studio can not generate Binding class while use DataBinding

Android Studio : 3.1.0, 3.1.1 Gradle : 4.4 Build Tools : 3.1.0 I am using the DataBinding library. when I add a layout file to project or add any vie

Android Data Binding: How to avoid "cannot find the KaptTask" warning

I have a large Android project with multiple library modules. They all use Kotlin, and many have data binding enabled. The project and all modules build and run

Two way data binding issue of \n (new line) while set String into Edittext

I am facing one issue while set data into Edittext when using TWO WAY DATA BINDING which contain HTML tags like " < br > " or \n. when there is \n it

Android aar library does not include BR class

I develop a small library for testing aar library creation with databinding. My problem is when I generate the aar file it doesn't include the BR class generat