kofigyan / StateProgressBar

Android library to realize the various states and transitions in a ProgressBar.
1.54k stars 233 forks source link

Line Gets OverLapped #49

Open Ashwin-Sqt opened 4 years ago

Ashwin-Sqt commented 4 years ago

The line gets overlapped is there any solution for this ? My XML Code IS :

            <com.kofigyan.stateprogressbar.StateProgressBar
                android:id="@+id/spb"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="-40dp"
                android:layout_marginBottom="20dp"
                app:spb_animateToCurrentProgressState="true"
                app:spb_checkStateCompleted="true"
                app:spb_maxStateNumber="three"
                app:spb_stateBackgroundColor="#19D72632"
                app:spb_stateDescriptionColor="#d72632"
                app:spb_stateForegroundColor="#19D72632"
                app:spb_stateNumberForegroundColor="#d72632" />

STATEPROGRESS

kofigyan commented 4 years ago

Is due to the choice of color. To resolve this lines should be drawn from state to state taking cognizant of the end of each circle. I will work on this and give you a feedback. You can start by overriding onDraw. Take a look at the drawLine function. Break it down to each state.

Ashwin-Sqt commented 4 years ago

Okay Thank you sir,