Multiline text alignment for EditText in android

I want to write an Android application that can perform the task of aligning text, for example, the word microsoft. Text alignment is possible, but not for each line. I want to set different alignment for different lines. How can i do this.

+3
source share
1 answer

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

0
source

All Articles