fluid-slider-android icon indicating copy to clipboard operation
fluid-slider-android copied to clipboard

Font Customization

Open jvartanian opened this issue 4 years ago • 0 comments

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.

jvartanian avatar Jul 09 '20 20:07 jvartanian