I know that it is possible to reference resources in layout by their resource id:
android:text=\"@{@string/resourceName}\"
However, I would
Another solution if you already have Context defined in your xml then you will not need to import String class.
android:text="@{@string/myFormatString(context.getString(pojo.res))}"
will work for
Value is: %s
If you don't have context in your xml. then follow this
and in your Activity
ActivityUserBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_user);
binding.setPojo(new MyPOJO());
binding.setContext(this);