开发者

Set Auto Complete Text View Text Alignment to be right aligned

开发者 https://www.devze.com 2023-03-07 15:04 出处:网络
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 a

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开发者_如何学Go one have an idea? note: I am using Samsung Galaxy Tab as a test device,

Thanks


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号