ufo22940268 / android-justifiedtextview

android justified textview
951 stars 243 forks source link

Last line is stretched out #23

Open bupthebroker opened 7 years ago

bupthebroker commented 7 years ago
    <me.biubiubiu.justifytext.library.JustifyTextView
        android:text="@string/main_description"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/textView"
        android:textSize="18sp"
        android:textColor="@color/background_floating_material_light"
        />

The second line end of sentence is handled nicely but the last line is stretched out.

screenshot_2017-02-22-14-26-16

SupernovasGhost commented 7 years ago

Did you find a fix for this? Same problem

magiclen commented 7 years ago

The same problem, it looks funny.

AirbornePanda commented 7 years ago

You need to add a line break at the end of your string. The easiest way is to add an \n at ther end of your string.

chnouman commented 6 years ago

adding line break works for me.

ahmadhanis commented 6 years ago

works great..kudos..i've been bugging with this issue for quite a while..