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

Font Customization #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jvartanian
Copy link

This PR exposes the ability to customize the slider's font using a font resource.

For example:

  • XML: app:slider_font="@font/karla"
  • Kotlin: slider.fontId = R.font.karla

The first attempt at this feature exposed the ability to customize the font using a Typeface directly, but there was no way to serialize the Typeface object in the FluidSlider.State class, so it was decided to allow only font resources.

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

Successfully merging this pull request may close these issues.

1 participant