I want to concat two strings for a TextView in android, Data Binding Api

前端 未结 10 834
太阳男子
太阳男子 2020-12-23 14:04

Im using DataBinding Api for setting the views in android layouts. Here is my layout.

layout.xml



        
10条回答
  •  醉话见心
    2020-12-23 14:59

    Probably late to the party: Below code will also work

    android:text='@{@string/hello.concat(user.firstName)}'

提交回复
热议问题