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

Step title #99

Closed
kostadin24 opened this issue Aug 5, 2020 · 1 comment
Closed

Step title #99

kostadin24 opened this issue Aug 5, 2020 · 1 comment

Comments

@kostadin24
Copy link

kostadin24 commented Aug 5, 2020

Hi,
I have symbols defined in custom font.
Trying to set Typeface for step title.
Is this possible?

For now my approach is to use findViewById to catch step tile.But I'm afraid that doing this in future my app can stop work.

@ernestoyaquello
Copy link
Owner

Hi, and sorry for the delay.

I have implemented this, you can find the new functionality in the version 2.4.0 of the library.

To use it in XML:

<ernestoyaquello.com.verticalstepperform.VerticalStepperFormView 
    ...
    app:form_step_title_font_family="@font/your_custom_font"
    app:form_step_subtitle_font_family="@font/your_custom_font"
    app:form_step_number_font_family="@font/your_custom_font"
    app:form_step_error_message_font_family="@font/your_custom_font"/>

To use it in code:

verticalStepperForm
    .setup(this, userNameStep, userEmailStep, userAgeStep)
    ...
    .stepTitleFontFamily(yourCustomFont)
    .stepSubtitleFontFamily(yourCustomFont)
    .stepNumberFontFamily(yourCustomFont)
    .stepErrorMessageFontFamily(yourCustomFont)
    ...
    .init();

I hope this helps, and thank you for your suggestion!

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