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

Is it possible to change the style of the font? #51

Open
AnkurJagani opened this issue Jul 3, 2018 · 1 comment
Open

Is it possible to change the style of the font? #51

AnkurJagani opened this issue Jul 3, 2018 · 1 comment

Comments

@AnkurJagani
Copy link

Hi,

Is it possible to change the style of the font? If Yes, How?

Thanks in advance!

Ankur J.

@ppypo
Copy link

ppypo commented Oct 10, 2018

Please refer to the following code.
https://github.com/yarolegovich/LovelyDialog

Access to inner View objects
Starting from a version 1.1.0 of the library, you have an access to dialog's inner View objects via methods whose names are prefixed with configure. For example:

lovelyDialog
.configureView(rootView -> /* you can find any view here, view ids are prefixed with ld_ */)
.configureTitleView(title -> title.setTextSize(customTextSize))
.configureMessageView(message -> message.getPaint().setShader(customShader))
.show();

--------------->>
example )
Typeface tf = Typeface.createFromAsset(getAssets(),"fontname.ttf");

newlovelyDialog .....
.configureTitleView(title -> title.setTypeface(tf))
.configureMessageView(message -> message.setTypeface(tf))

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

2 participants