Is it possible to do string substitution in Android resource XML files directly?

前端 未结 4 2057
误落风尘
误落风尘 2021-01-04 20:03

In my android app, I have a large string resource xml file. I want to make reference and reuse declared resources values within String values. Is it possible to have the R

4条回答
  •  春和景丽
    2021-01-04 21:06

    Well, I don't think this is possible. Because once the resources are allocated android won't allow us to change them dynamically in the air. Instead you can try having your Strings in a separate class and change them as you run through your code.

提交回复
热议问题