Allan Wang
06/15/2019, 9:55 PM@BindingAdapter("android:languageColor")
fun TextView.languageColor(color: String?) {
Usage
android:languageColor="@{repo.primaryLanguage.color}"
I’ve verified that
• TextView is the correct class (not appcompat)
• Input is nullable (also tried Any?
)
And I’ve tried the label as languageColor
.
The IDE correctly autosuggests the name, but I’m getting the error:
****/ data binding error ****msg:Cannot find the setter for attribute 'android:languageColor' with parameter type java.lang.String on android.widget.TextView.
Edit: Also just checked and it works fine with javadawidhyzy
06/16/2019, 6:19 AMgildor
06/16/2019, 1:42 PMAllan Wang
06/16/2019, 10:10 PMapp:
within the xml. Problem was with missing kapt