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.
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.
editText.setGravity(Gravity.RIGHT);