How do I use databinding to combine a string from resources with a dynamic variable in XML?

前端 未结 9 952
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 13:30

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:



        
9条回答
  •  误落风尘
    2020-12-07 14:15

    2019 Update, Android studio to 3.4, Android Gradle Plugin to 3.4

    No more required to import

    " 
    

    for string operations. Please check this answer.

提交回复
热议问题