0

How add circle on start progressbar? I'm customize this progressBar but cann't to add circle on start progress

Image: enter image description here

LAYOUT_LIST

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape
            android:shape="ring"
            android:thicknessRatio="30"
            android:useLevel="false">
            <solid android:color="#FDC410"/>
            <size android:width="100dp"
                android:height="100dp"/>
        </shape>
    </item>
    <item>
        <rotate
            android:fromDegrees="270"
            android:toDegrees="270">
            <shape
                android:shape="ring"
                android:thicknessRatio="30"
                android:useLevel="true">
                <gradient
                    android:endColor="#AA6F04"
                    android:startColor="#D69622"
                    android:type="sweep" />
            </shape>
        </rotate>
    </item>
</layer-list>

STYLE

<style name="CircularDeterminateProgressBar">
    <item name="android:indeterminateOnly">false</item>
    <item name="android:progressDrawable">@drawable/pb_circle</item>
</style>

PROGRESSBAR

   <ProgressBar
        android:id="@+id/pb_one"
        android:layout_width="140dp"
        android:layout_height="140dp"
        android:progress="75"
        style="@style/CircularDeterminateProgressBar"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

Please do not suggest using the seekbar. Seekbar does not have the functionality that I need

ADM
  • 20,406
  • 11
  • 52
  • 83
Vlad Bulan
  • 157
  • 13
  • [You can check here] https://stackoverflow.com/questions/21333866/how-to-create-a-circular-progressbar-in-android-which-rotates-on-it – Mercan Birer Dec 16 '21 at 08:58
  • @MercanBirer I watch everywere, but don't find answer on my question – Vlad Bulan Dec 16 '21 at 09:02
  • `Seekbar does not have the functionality that I need` - [SeekBar](https://developer.android.com/reference/android/widget/SeekBar) is an extension of ProgressBar What functionality you do not find in seekbar and it's present in progress bar? – Nitish Dec 16 '21 at 10:21
  • @Nitish I meant custom seekBar like that https://github.com/stefanodp91/CircularSeekBar This seekbar extends from View – Vlad Bulan Dec 16 '21 at 10:27
  • I search circular seekbar with gradient or progressBar with circle on start – Vlad Bulan Dec 16 '21 at 10:29
  • Doesn't the link which you just shared supports the gradient color in the progress `app:cs_color_list : Integer vector used for gradient generation`. It's mentioned in the document that it's supports – Nitish Dec 16 '21 at 11:09
  • 1
    @Nitish This external library working incorrerct on my and many other desktop. Android Studio Render cann't instalize that seekbar. – Vlad Bulan Dec 16 '21 at 11:26

0 Answers0