I go through this How to concatenate multiple strings in android XML? and in the end there are comments that
For clarity, Its works:
&
Yes, you can do so without having to add any Java/Kotlin code, just XML, by using this library: https://github.com/LikeTheSalad/android-string-reference which does that at buildtime.
For your case, you'd have to set up your strings like this:
Some text
bbb ${aaa}
And then the library will create the following at buildtime:
bbb Some text
Disclaimer: I'm the author of this library.