Questions tagged as 'android-databinding'

1
answer

Data Binding does not work

I'm trying to use the Data Binding on Android. For this I added the classpath in the application: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.0-beta3'...
asked by 20.04.2016 / 15:33
0
answers

DataBinding Kotlin

I have a project that was done in Java, with lifecycle, room and everything, and now I'm migrating to Kotlin. I'm trying to use databinding, but it's giving me this error:    Can not access class 'Loguin.Loguin'. Check your module classpath f...
asked by 07.11.2018 / 13:30
0
answers

ViewFlipper is not swapping includes when I use databind

activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/root_main" android:layout_width="match_parent" androi...
asked by 02.04.2018 / 18:40
1
answer

How to use Data binding with different layouts on Android?

I'm making a app Android that displays an address list and a map with these addresses. Vertically, the two fragments appear in tabs within a viewPager . /res/layout/activity_main.xml <layout xmlns:android="http://schemas....
asked by 14.02.2017 / 21:25
2
answers

Databinding error in Android Studio 2.1.2: package databinding does not exist

I'm trying to learn databinding and a strange error is occurring when I try to build: Error:(8, 54) error: package br.com.aulas.vitor.cadastrodecarro.databinding does not exist My Build.gradle looks like this: apply plugin: 'com.android.a...
asked by 01.08.2016 / 14:59