首页 » Andorid » 安卓例子 » 正文

更方便的调整 Android 中的字体,这个库自带了一些第三方英文字体。

alt tag

FontometricsLibrary

API Android Arsenal Android Dev Digest License
A Simple Android Library to use Custom Fonts with Ease. Use Customs Fonts in your Android project without adding any .ttf/.otf in Assests Folder.

Installation

Add gradle dependency with command:

dependencies {
    compile 'org.ishmeetsingh.androbot:fontometrics:1.0.0'
    }

By using Maven


  org.ishmeetsingh.androbot
  fontometrics
  1.0.0
  pom

Implementation

You can change the font of any TextView by adding just one line. TextView_Id.setTypeface(Fontometrics.Font_Name(Context context));

TextView textview;
textview = (TextView) findViewById(R.id.textview_id);
textview.setTypeface(Fontometrics.coffee_with_sugar(this));

For implementation you can also refer the sample app provider in the repo.

*TO SUPPORT FOR SUCH MORE LIBRARIES, CHECK THIS (http://github.com/ishmeetsingh97).

下载 (0)

发表评论