bostgroup / DemoCustomTextView

Custom font for TextView from assets in module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom font for TextView

You make custom font style from "assets" in module. Font file should be in folder "assets", which is located in library.

app:customFont="example1.otf"

  • Example

    <group.bost.customfonttextview.CustomTextView
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:text="Hello World!"
		app:customFont="example1.otf"/>
  • Screenshot

About

Custom font for TextView from assets in module


Languages

Language:Java 100.0%