Skip to content

iceboy1369/JustifyTextView

Repository files navigation

TextViewJustify

API Android Arsenal

This is a custom library for android that can justify your textView... Amazing!

in the below you can see the screenshot

Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
        implementation 'com.github.iceboy1369:JustifyTextView:1.2'
}

Step 3. Add TextViewJustify in your xml files like this:

<icegroup.textviewjustify.TextViewJustify
	android:id="@+id/txt_justify"
	android:layout_width="match_parent"
	android:layout_height="wrap_content"/>

Step 4. Then in your code use the 'true' after your text param to do justify that like below line:

TextViewJustify txt_justify = findViewById (R.id.txt_justify);
txt_justify.setText( "your text" , true );

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages