tankery / CircularSeekBar

Custom circular SeekBar (Circle, Semi-circle, and Ellipse) for Android
Apache License 2.0
368 stars 59 forks source link

add method custom Paint #50

Closed ttpho closed 2 years ago

ttpho commented 2 years ago

Overview

I want to add method to custom paint for CircularSeekBar

Use

Screenshot_20220722_181748


        val dashWidth = convertDpToPixel(16.0f, context.resources) // 16 dp to pixel
        val dashGap = dashWidth / 2.0f
        circularSeekBar?.customCirclePaint {
            it.pathEffect = DashPathEffect(floatArrayOf(dashWidth, dashGap), 0.0f)
        }
tankery commented 2 years ago

Hi, @ttpho , Thanks for the PR and sorry for the late reply. The idea of setting custom painters looks great, could provide a more flexible choice for developers. Just added some comments, could you please take a look? Thanks again for the contribution!

ttpho commented 2 years ago

@tankery Thank you for your review. Please help me check my commit.

tankery commented 2 years ago

Thanks for the contribution. This new method has been included in the version 1.4.1 :)