I want to fix some text of string in the center. How can I do that? For example, take a look on this photo
I have a string like that. Now I want some words (Heading) of my string to be shown in a TextView
at the center horizontally but others word will remain as usual. How can I do that?
I have tried the following code but it doesn't work for various dimension's devices.
String string= " SYRIA
\n\nSyria oh Syria why do you bleed?
\nBrother fights brother without thought or need
\nRuled by a tyrant for so many years
\nAnd now the split blood is washed away by tears\n"