A library to achieve justified TextView for both RTL and LTR texts.
Gradle
AndroidX library version:
dependencies {
implementation 'com.github.arefbhrn:JustifiedTextView:1.0.6'
}
android.support library version:
dependencies {
implementation 'com.github.arefbhrn:JustifiedTextView:1.0.5'
}
Include this library in your layout
<com.arefbhrn.justifiedtextview.JustifiedTextView
android:id="@+id/jtvSample"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/long_text" />
If you have a better idea or way on this project, please let me know, thanks :)
This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details