I have a button in my application. the text in the button goes as “Type: Location” something like that.
I’m wondering whether its possible to change the text on the button as “Type: Location”
i.e Bold the text partially on the button??
Thanks for yoru time in advance.
Simply put your string in strings.xml and change it like this,
and set this text to your button like this
Sometimes the above approach will not be helpful when you might have to use Dynamic Text. So at that case SpannableString comes into action.