简体   繁体   中英

“*” sign alignment in android edittext

I have an edit text where all character are in same orientation except " * " sign.i want to all character in same orientation. i tried font to edittext for this but it is not work. and search in the google and here but does not find any link related to my problem. but in android dialer this " * " in same orientation. thanks in advance for help me.

The common asterisk "*" sign of latin character set is displayed a bit upper, not in the middle of the text. To achieve the middle alignment you can use alternative unicode asterisk symbol like: 0x2217

My Galaxy S use the same symbol when I dial the number.

As for implementation you can just substitute the general * symbol to this 0x2217 while user entering the text.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM