Im using DataBinding Api for setting the views in android layouts. Here is my layout.
DataBinding
layout.xml
The simplest way I found to be is to replace ''(single) in place of ""(double), For Eg. You have two variables,
Now to concatenate,
android:text='a + " " + b}'