spencer
03/02/2020, 4:20 PMwasyl
03/02/2020, 4:31 PMwasyl
03/02/2020, 4:31 PMspencer
03/02/2020, 5:24 PMerror: package mypackage.databinding does not exist
import mypackage.databinding.MyLayoutBindingmiqbaldc
03/02/2020, 10:13 PM<data> tag also using it in your xml like this:
<TextView
app:customBinding="@{variable1}" />
you might want to check if the customBinding match with your data type
sometimes data binding won’t generated any layout if there’s an error of it
1. wrong syntax
2. wrong data type provided
3. unescaped strings
4. Integer data type but using it in CharSequence attributes, e.g: android:text="@{thisIntegerValue} won’t worksspencer
03/02/2020, 10:23 PMmiqbaldc
03/02/2020, 10:32 PMviewBinding { isEnabled = true } ?spencer
03/02/2020, 10:46 PMMark
03/03/2020, 2:59 AMspencer
03/03/2020, 4:17 PM