Im using DataBinding Api for setting the views in android layouts. Here is my layout.
DataBinding
layout.xml
In case of static string and other dynamic you can use this
android:text="@{`Hello ` + user.firstName}"/>
In case of dynamic data you can use this.
android:text='@{user.firstName+" "+user.lastName}'