Calligraphy icon indicating copy to clipboard operation
Calligraphy copied to clipboard

how to change font from default to custom

Open qlxu opened this issue 9 years ago • 3 comments

I need to definition many font styles,and i want to change it from one style to another,how to realize?please help me !

qlxu avatar Aug 29 '16 03:08 qlxu

What do you mean change many styles? Calligraphy was intended to support fonts in XML layouts and apply them during LayoutInflation. If you intend to change fonts when the app is running you will need to do that programmatically.

The Sample app has all the working examples of how you can apply styles.

chrisjenx avatar Sep 05 '16 18:09 chrisjenx

@chrisjenx haha.. i believe s/he is using google translate to translate question from chinese to english.

@qlxu 您可以参考样本。为更深入的,请阅读。https://developer.android.com/guide/topics/ui/themes.html。 我不知道是否有中文版。或者你可以在百度搜索 "android theme style"。

tohjg avatar Sep 08 '16 10:09 tohjg

Thanks @tohjg

chrisjenx avatar Sep 08 '16 10:09 chrisjenx