Skip to content

Custom Android TextView. Define custom typeface directly in XML.

Notifications You must be signed in to change notification settings

guyaristide/TTextView

Repository files navigation

TTextView

Custom Android TextView. Define custom typeface directly in XML.

Eliminate

TextView textView = (TextView) findViewById(R.id.textView1);
Typeface typeface = Typeface.createFromAsset(context.getAssets(), typefacePath);
textView.setTypeface(typeface);

Define typeface path (from assets folder) in XML with customTypeface attribute.

<agnamc.ci.library.TTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Atlantide Starlight"
        app:customTypeface="AtlantideStarlight.ttf"
        />

About

Custom Android TextView. Define custom typeface directly in XML.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages