String Literals
When using single quotes around the attribute value, it is easy to use double quotes in the expression:
android:text='@{map["firstName"]}'
It is also possible to use double quotes to surround the attribute value. When doing so, String literals should either use the " or back quote (`).
android:text="@{map[`firstName`}"
android:text="@{map["firstName"]}"
Resources
It is possible to access resources as part of expressions using the normal syntax:
android:padding="@{large? @dimen/largePadding : @dimen/smallPadding}"
Format strings and plurals may be evaluated by providing parameters:
android:text="@{@string/nameFormat(firstName, lastName)}"
android:text="@{@plurals/banana(bananaCount)}"
When a plural takes multiple parameters, all parameters should be passed: