I have a TextView which has a hardcoded string and I have a dynamic variable that I want to put at the end of this string. This is my code:
In case if you want to type text in XML, you can use `` quotation.
android:text="@{`Device Name`}"
elsewhere you need to Concat with the String or variable, you can use
android:text="@{`Device Name`.concat(android.os.Build.MANUFACTURER)}"
if you want to Concat string resource instead of the variable you can do,
android:text="@{@string/app_name.concat(`Device Name`)}"