Bishan Bishan - 1 year ago 146
Android Question

Right align text in android TextView

I have a

in my application. I want to align the text in it to the right. I tried adding:


But this doesn't work for me.

What might I be doing wrong?

Answer Source

I think that you are doing this: android:layout_width = "wrap_content"
If this is the case, do this: android:layout_width = "match_parent"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download