CalligraphyAndroid 字體類庫
Calligraphy 是一個用來簡化 Android 應(yīng)用使用自定義字體的類庫, 該類庫會自動查找應(yīng)用中的 TextView 并設(shè)置其使用的字體。
效果圖:
使用:
添加依賴庫(Download (.aar))
dependencies {
compile 'uk.co.chrisjenx:calligraphy:2.1.0'}
<TextView android:text="@string/hello_world" android:layout_width="wrap_content" android:layout_height="wrap_content" fontPath="fonts/Roboto-Bold.ttf"/>
評論
圖片
表情
