How to justify a text with XML

0

I'm trying to justify a text with some dots in XML, I've tried in several ways without success.

Example:

  • I need the text to be long, since I have to put several points, detailing each information in a different dot.
  • It should also be justified in this way, as it is in this example, but the truth is that it is as follows.

(this must be justified)

And it's staying like this:

• It should also be justified in this way, as it is in this example, but the truth is that it is as follows.

• I need the text to be long, since I must put several points, detailing each information in a different dot.

My string is as follows:

<string name="myString">\u25CF También debe de quedar justificado de esta manera, tal cual está en este ejemplo, pero la verdad es que queda de la siguiente forma.\n\n\u25CF También debe de quedar justificado de esta manera, tal cual está en este ejemplo, pero la verdad es que queda de la siguiente forma.\n\n\</string>
    
asked by Diego Castaño 23.02.2018 в 05:21
source

1 answer

-1

There are several libraries for that:

navabi / JustifiedTextView link

ufo22940268 / android-justifiedtextview link

As of Android O there is justification:

textView.setJustificationMode(JUSTIFICATION_MODE_INTER_WORD);
    
answered by 23.02.2018 в 05:45