Skip to content
android justified textview
Java
Branch: master
Clone or download
Latest commit 519b0fd Dec 6, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea up Jun 4, 2014
gradle/wrapper Use lastest build tool. Mar 24, 2015
justifytext-library Merge pull request #9 from xizz/master Mar 16, 2016
sample
.gitignore up Jun 4, 2014
README.md Update README.md Dec 6, 2017
build.gradle Use lastest build tool. Mar 24, 2015
en.png Use lastest build tool. Mar 24, 2015
gradle.properties 修复自定义字体的问题 Jun 19, 2014
gradlew 用spacing差不多对齐了,不知道效率怎么样 Mar 19, 2014
gradlew.bat 用spacing差不多对齐了,不知道效率怎么样 Mar 19, 2014
settings.gradle 差不多修改好了 Mar 20, 2014
texttest.iml 添加了一些color和size的设置 Mar 24, 2014
zh.png Use lastest build tool. Mar 24, 2015

README.md

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

You can’t perform that action at this time.