Hey, thanks for your work.
I'm using your library together with google library for databinding. This is my code:
<com.github.abdularis.civ.AvatarImageView
android:layout_width="@dimen/material_list_avatar_size"
android:layout_height="@dimen/material_list_avatar_size"
app:avatar_backgroundColor="@color/colorPrimaryDark"
app:avatar_text="@{item.firstLetterName())}"
app:avatar_textSize="22sp"
app:strokeColor="@android:color/black"
app:strokeWidth="1dp" />
[kapt] An exception occurred: android.databinding.tool.util.LoggedErrorException: Found data binding errors.
****/ data binding error ****msg:Cannot find the setter for attribute 'app:avatar_text' with parameter type java.lang.String on com.github.abdularis.civ.AvatarImageView.
class BindingAdapterUtils {
companion object {
@JvmStatic
@BindingAdapter("app:avatar_text")
fun setAvatarText(view: AvatarImageView, text: String) {
view.initial = text
}
}
}
After that everything works fine. It may be possible to include native support for databinding? So others users dont get the same error.