模仿微信读书左右对齐的文字效果
<com.example.testdemo1.XQJustifyTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:textSize="16sp"
android:gravity="start"
android:textAlignment="textStart"/>
在主项目app的build.gradle中依赖
dependencies {
...
implementation 'com.text:alginlib:1.0.1'
}