Concatenate multiple strings in XML?

前端 未结 10 1014
执笔经年
执笔经年 2020-12-01 05:09

I go through this How to concatenate multiple strings in android XML? and in the end there are comments that

For clarity, Its works:

&

10条回答
  •  一个人的身影
    2020-12-01 05:31

    Yes, you can do it if your XML files are using DataBinding as you can see in this link

    Use it like this:

    "@{@string/first_string+ @string/second_string}"
    

提交回复
热议问题