fluid-slider-android
fluid-slider-android copied to clipboard
Font Customization
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.