I have a String in my strings.xml file such as
<string name="my_text">Hello <b>$%1$s</b>, android is cool <b>bold me</b></string>
The only way to retrieve the text with styling for bolding is using
resources.getText(R.string.my_text);
Although the issue is getText does not take additional parameters for the arguments I wish to provide such as the method getString that takes arguments such as
resources.getString(R.string.my_text, "I WILL BE BOLDED")
If I use getString I lose the bold, if I use getText I cant pass arguments how do I obtain both?