Hassan Mokdad
Hassan Mokdad

Reputation: 5902

Set Auto Complete Text View Text Alignment to be right aligned

I am trying to set the Text alignment of an auto complete text view to be right aligned, I used the android:gravity="Right", on the emulator It is working find, but on the device it is always left aligned,

Does any one have an idea? note: I am using Samsung Galaxy Tab as a test device,

Thanks

Upvotes: 0

Views: 1519

Answers (2)

Shivangi Agrawal
Shivangi Agrawal

Reputation: 149

Set textAlignment attribute to right in autocompleteTextView. Surely will help.

Upvotes: 0

Grook
Grook

Reputation: 405

Try using setGravity() method. Maybe it will affect and on galaxy too.

Upvotes: 0

Related Questions