Back to project page justified.
The source code is released under:
Apache License
If you think the Android project justified listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.uncopt.android.example.justify; /*from w w w . java2 s . c o m*/ import android.content.Context; import android.util.AttributeSet; import com.uncopt.android.widget.text.justify.JustifiedEditText; public class MyJustifiedEditText extends JustifiedEditText { public MyJustifiedEditText(final @NotNull Context context, final AttributeSet attrs) { super(context, attrs); if (!isInEditMode()) { final ExampleActivity activity = (ExampleActivity)context; setTypeface(activity.getTypeface()); } } }