i am a new android developer,i know align two text in one button using by /n,
but don’t know align two text in one button one text right alignment and another one is left align please any one help me and solve my problem, since I use Arabic language (right to left)
I want to do this programmatically, not by xml design.
I need to align two texts one below another ie, english text on top and arabic in bottom
Thanks in advance
i am a new android developer,i know align two text in one button using
Share
Use following code:
Assuming you have a button defined in XML or can create one in code with text “English\nArbi”.
The output is as follows: