Make a certain part of a android-textview align to the right

前端 未结 6 1464
南旧
南旧 2020-12-04 20:37

I have this TextView. Some parts of it is supposed to be aligned to the left and some parts to the right. How would I do this in Java?

Basicly I want t

6条回答
  •  长情又很酷
    2020-12-04 21:00

    Two solution :

    1) have a different text view for each line and set its gravity.

    2) Use Html while loading data setting the alignment in html for it REF:how-to-display-html-in-textview This will not work align is not a supported tags Edited:

    Also

    3: will be to use a span.

提交回复
热议问题