-
-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indicator Does Not Move If withTremble Is Set to False #217
Comments
My XML is below: <com.github.anastr.speedviewlib.SpeedView
android:id="@+id/gauge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:sv_withTremble="false"
app:sv_speedTextColor="?android:attr/textColorPrimary"
app:sv_speedTextFormat="INTEGER"
app:sv_textColor="?android:attr/textColorPrimary"
app:sv_unit=""
app:sv_indicator="KiteIndicator"
app:sv_tickNumber="5"
app:sv_withIndicatorLight="true"
app:sv_centerCircleRadius="0dp"
app:sv_sectionStyle="ROUND"/> And I'm simply calling |
Is your fragment part of a viewpager or it's just been added directly to a host fragment? |
I'm using the navigation component, so it's not part of a viewpager. The parent view group is the navhost container. |
Version |
Great! I will confirm this later and then close the issue. Thank you! |
Describe the bug
Neither the indicator nor the number text can change (by
speedTo()
orspeedPercentTo()
) ifwithTremble
is set to False either in the XML or programmatically. The indicator and the number text can work properly ifwithTremble
is True.To Reproduce
Steps to reproduce the behavior:
I have tried with
SpeedView
andAwesomeSpeedView
.speedTo()
works.app:sv_withTremble="true"
orspeedometer.withTremble = true
.speedTo()
does not work anymore as neither the indicator nor the number text can update.Note: I'm using the default 0 - 100 range, and the values I'm setting are within the range.
Update: Tried with 1.5.5, it's working correctly in that version. Seems to be a regression :)
XML & code
N/A
Screenshots
N/A
Smartphone (Optional):
Additional context
None.
The text was updated successfully, but these errors were encountered: