简体   繁体   中英

multiline text alignment of EditText in android

I want to write an android application which can perform text alignment task like microsoft word.Whole text alignment is possible but not for every line.I want to set different alignment for different line.How can I do this.

Well if you want to align it to the right you can use editText.setGravity(Gravity.RIGHT); I don't think it's possible to center the text, but maybe someone knows something I don't.

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