Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change font from default to custom #323

Open
qlxu opened this issue Aug 29, 2016 · 3 comments
Open

how to change font from default to custom #323

qlxu opened this issue Aug 29, 2016 · 3 comments

Comments

@qlxu
Copy link

qlxu commented Aug 29, 2016

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

@chrisjenx
Copy link
Owner

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.

@tohjg
Copy link

tohjg commented Sep 8, 2016

@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"。

@chrisjenx
Copy link
Owner

Thanks @tohjg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants