I am developing an Android app which parses an xml file from a online server and extracts a string from it and stores it in a local variable which is then displayed in a textview. I want some part of the extracted text to be displayed in Bold. How do I achieve that? I can make separate text view for only the Bold part and give it a bold attribute, but then I would have too many views and that would slow down the app.
I have access to the xml file on the server and I can make changes to it if required. Is there any way I could format the text in the xml file itself and then be displayed "as is" in the textview?