An open API service indexing awesome lists of open source software.

https://github.com/anitaa1990/customfontview

Custom View classes for TextView, EditText & Buttons - to set custom fonts
https://github.com/anitaa1990/customfontview

android android-app android-application android-architecture android-library android-sample android-sdk android-studio android-ui custom-fonts edittext textview

Last synced: about 1 month ago
JSON representation

Custom View classes for TextView, EditText & Buttons - to set custom fonts

Awesome Lists containing this project

README

        

# CustomFontView
API [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FontView-blue.svg?style=flat)](https://android-arsenal.com/details/1/6068)

Custom font classes for TextView, EditText & Buttons

![screenshot_20170816-153601](https://user-images.githubusercontent.com/22608780/29374593-9d9f71d4-82cf-11e7-915d-dcead8093d40.png)

How to integrate the library in your app?


Gradle Dependecy

```gradle
dependencies {
compile 'com.an.customfontview:customfont:0.1.0'
}
```

Maven Dependecy
```xml

com.an.customfontview
customfont
0.1.0
pom

```

Add fonts

Add your custom fonts to ```assets/``` .
If the assets directory does not already exist, you should create it under ```src/main/``` in your project directory.
You might consider creating a ```fonts/``` subdirectory in the assets directory (as in examples).

Usage

Add the below line to the root layout of your xml file:

```xml
xmlns:app="http://schemas.android.com/apk/res-auto"
```

Custom TextView

```xml
.....

.....
```

Custom EditText

```xml
.....

.....
```

Custom Buttons

```xml
.....

.....
```

That's all folks!