android:text with an int assumes that the int is a string resource ID. Use android:text="@{Integer.toString(myViewModel.number)}".
You will also need to import the (no longer needed)Integer class:
android:text with an int assumes that the int is a string resource ID. Use android:text="@{Integer.toString(myViewModel.number)}".
You will also need to import the (no longer needed)Integer class: