I'm pretty new in android development and I need your help. I need button with bold text aligned to the left hand side and another text with different font (smaller and different colour) aligned to the right, something like that:
[**Name** john]
//Name is bold and black
// john is smaller and let's say blue
I did a researched online but I couldn't find anything. I tried:
this.button.setText(Html.fromHtml(styledText));
But it looks like it doesn't work with alignment="right"
, text-allign:right
or even
float:right
.
I also find another solution to use table layout and table row but I need to have one button which will fired some action. I don't want two buttons for two parts of the text.
Thanks, in advance.