Im using DataBinding Api for setting the views in android layouts. Here is my layout.
DataBinding
layout.xml
This is already answered by @GeorgeMount in comments to one of the solution. Which to me looks like the best solution so far here.
android:text="@{@string/location(user.city,user.state)}"
in your strings.xml
%1$s, %2$s