Skip to content

ufo22940268/android-justifiedtextview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9329c7f · Dec 3, 2024

History

47 Commits
Jun 4, 2014
Nov 9, 2024
Nov 22, 2024
Nov 9, 2024
Jun 4, 2014
Dec 3, 2024
Nov 26, 2024
Nov 9, 2024
Nov 9, 2024
Oct 16, 2024
Mar 19, 2014
Mar 19, 2014
Mar 20, 2014
Mar 24, 2014
Nov 9, 2024

Repository files navigation

JustifiedTextView

Implement justified textview base on the native TextView. Let text displays fill the screen width without extra blanks in the end of line.

English

截了个图

Chinese

截了个图

Usage

You can import in build.gradle like this

compile 'me.biubiubiu.justifytext:library:1.1'

If you use maven, add this to pom.xml.

<dependency>
  <groupId>me.biubiubiu.justifytext</groupId>
  <artifactId>library</artifactId>
  <version>1.1</version>
  <type>aar</type>
</dependency>

Then add put this into layout file.

    <me.biubiubiu.justifytext.library.JustifyTextView
        android:id="@+id/text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        />

demo

directly download

Get it on Google Play

Change list

  • 1.1 Display ok when using custom font.

MIT License