anastr/SpeedView
Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape :zap:
27 Releases
Latest: 3y ago
Fix bugs1.6.1Latest
📋 Changes
- Fix #230.
Flexible fulcrum point1.6.0
📦 Fulcrum point for indicator
- New feature to change the indicator position and the rotation point #45.
- ```kotlin
- speedometer.setFulcrum(xOffset = .5f, yOffset = .7f)
- ```
Fixes1.5.53
📋 Changes
- Fix ticks overlap #214 .
- Fix speedometer animation not working on activity start.
Fix visibility1.5.52
📋 Changes
- Fix #217 .
- Fix #213 .
Performance1.5.51
📋 Changes
- Improve performance by stopping animations on some system events.
- Sections list is now immutable.
- Update kotlin to `1.5.20`.
- Update documentations.
1.5.5
⚡ Improve performance
- Stop all animations when the view isn't visible to the user.
- Improve drawing performance.
Publish to mavenCentralv1.5.4
Marks, Ticksv1.5.3
✨ new in this version:
- dynamic marks #59 :
- `sv_marksNumber`: set custom number of marks.
- `sv_marksPadding`: padding from speedometer edge.
- `sv_markHeight` and `sv_markWidth`: size of marks.
- `sv_markStyle`: ROUND or BUTT.
- `markColor`: color of marks.
- enum `Style` class now moved out of `Section` class.
- `Style.SQUARE` is Deprecated, use `Style.BUTT`.
- + 3 more
🐛 fixes:
- fix null [custom tick label](https://github.com/anastr/SpeedView/wiki/Usage#custom-tick-label).
- fix preview with custom font.
- fix #177 .
- fix #178 .
- fix #185 .
Sections policyv1.5.2
📦 Sections
- add start and end value:
- `Section(0f, .6f, 0xFF00FF00.toInt())`
- add width and padding to every section.
- every section may have custom width and padding.
- ```kotlin
- section.width = ..
- section.padding = ..
- ```
- + 6 more
🐛 fixes and enhancement
- ImageIndicator accept drawable #171.
- change Interfaces to [Function types](https://kotlinlang.org/docs/reference/lambdas.html#function-types).
- change `OnPrintTickLabel` interface to `OnPrintTickLabelListener` 'typealias'.
- replace `SpeedTextFormat` with `SpeedTextListener` 'typealias' #173.
- access to `minSpeed` & `maxSpeed` directly.
- fix #169 #172 #174 .
Sectionsv1.5.0
📋 Changes
- new multi-sections:
- new support of (no section)
- `OnSectionChangeListener` now used Section class:
- remove 3D Effects from TubeSpeedometer (~~isWithEffects3D~~) .
- change indicator width and color:
- Sections and indicator are now Observable by its speedometer.
- add `sv_centerCircleRadius`.
- custom default ticks.
- + 1 more
fix problemv1.4.1
📋 Changes
- fix StakeOverflowException 1164674
- update Kotlin to v 1.3.50
Kotlinv1.4.0
📋 Changes
- easy to understand.
- less NullPointerException.
- smaller size.
Fix Bugsv1.3.0
📋 Changes
- fix getter and setter methods of SpeedometerBackColor for [TubeSpeedometer](https://github.com/anastr/SpeedView/wiki/6.-TubeSpeedometer).
- fix color doesn't change at runtime for [TubeSpeedometer](https://github.com/anastr/SpeedView/wiki/6.-TubeSpeedometer).
- fix color changed in RecyclerView at runtime #100 .
- fix center circle color for PointerSpeedometer #106 .
- New custom number of decimal for speedText and Ticks #108 .
new Effectv1.2.0
📋 Changes
- fix text size attribute in AwesomeSpeedometer #70 .
- change the color of just one tick #71 .
- min and max speed in float #64 .
- new indicator light effect #78 (_beta_).
- new notes positions.
Fix Bugs.1.1.7
🐛 fix width and height, and add to ScrollView
- 53284d9 issue #56 ,Now you can use `wrap_content` for both layout_width & layout_height for speedometer family:
- ```xml
- <com.github.anastr.speedviewlib.SpeedView
- android:id="@+id/speedView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- ```
🐛 fix font cut
- ea2e6cb issue #50, speed text and unit text will no longer be incomplete for all fonts.
🐛 fix Indicator rotation
- 78965d7 issue #61, No more random rotation after using `sv_minSpeed` and `sv_maxSpeed` attributes.
Fix / New1.1.6
📋 Changes
- New : [KiteIndicator, NeedleIndicator](https://github.com/anastr/SpeedView/wiki/Indicators).
- Add : [custom tick label](https://github.com/anastr/SpeedView/wiki/Usage#custom-tick-label) dd4343f use `OnPrintTickLabel` interface #35 .
- Add : [custom ticks position](https://github.com/anastr/SpeedView/wiki/Usage#custom-ticks) 25a0cd9 use `setTicks(0, 10, 60, ...)` method #39.
- delete deprecated methods (`getCorrectSpeed`,`getCorrectIntSpeed`) use (`getCurrentSpeed`,`getCurrentIntSpeed`).
- Add : ability to remove the pointer from [PointerSpeedometer](https://github.com/anastr/SpeedView/wiki/5.-PointerSpeedometer) issue #42 use `sv_withPointer` attribute 5cc9e41.
- Fix : speed value change to 0 when device rotation changed 324889e.
- Fix : padding issue 2bb20f2 #43.
- Fix : [speedometerMode](https://github.com/anastr/SpeedView/wiki/Usage#speedometer-modes).
- + 1 more
New Tick Values1.1.5
📋 Changes
- new speed value [label at each tick point](https://github.com/anastr/SpeedView/wiki/Usage#ticks) #22 #31 .
- Deprecate `getCorrectSpeed(), getCorrectIntSpeed()` and replace with `getCurrentSpeed(), getCurrentIntSpeed()`, No correction anymore.
- add `setMinMaxSpeed(minSpeed, maxSpeed)` method.
- fix image scale in [ImageLinearGauge](https://github.com/anastr/SpeedView/wiki/9.-ImageLinearGauge).
- fix Render issues #32 #34 .
- fix blur effect for inactive marks for [DeluxeSpeedView](https://github.com/anastr/SpeedView/wiki/2.-DeluxeSpeedView).
Improve Base, new Gauge1.1.4
📋 Changes
- add "`sv_`" to all attributes to fix conflicts issue, #20 fixed.
- create new `Gauge` class, the base class for all speedometers and gauges.
- add base LinearGauge for custom gauge.
- new [ProgressiveGauge](https://github.com/anastr/SpeedView/wiki/8.-ProgressiveGauge).
- new [ImageLinearGauge](https://github.com/anastr/SpeedView/wiki/9.-ImageLinearGauge).
- [add Notes For Unlimited Time](https://github.com/anastr/SpeedView/wiki/Notes#add-note-for-unlimited-time).
- add `sv_speedTextPadding` attribute.
- add `sv_cutPadding` attribute to fix indicator cutting #12 when change [speedometerMod](https://github.com/anastr/SpeedView/wiki/Usage#speedometer-modes).
- + 7 more
Fix / Huge Update1.1.3
📋 Changes
- Support API 8.
- new [image indicator](https://github.com/anastr/SpeedView/wiki/Indicators#imageindicator).
- new [OnSectionChangeListener](https://github.com/anastr/SpeedView/wiki/0.-Get-Started#speed-listener).
- new [speedometerMode](https://github.com/anastr/SpeedView/wiki/Usage#speedometer-modes): change size, style, indicator's position.
- speed text:
- new [speedTextPosition](https://github.com/anastr/SpeedView/wiki/Usage#speed-text-position): change speed text's position.
- ability to change speed text's format (INTEGER, FLOAT).
- new `unitUnderSpeedText` (boolean) change relationship between _unitText_ and _speedText_, (Under each, side by side).
- + 14 more
new Speedoeters1.1.2
📋 Changes
- new [TubeSpeedometer](https://github.com/anastr/SpeedView/wiki/6.-TubeSpeedometer).
- new [ImageSpeedometer](https://github.com/anastr/SpeedView/wiki/7.-ImageSpeedometer).
- fix _Create Speedometer Programmatically_.
- fix _padding_.
- Ability to change [indicators](https://github.com/anastr/SpeedView/wiki/Indicators).
- add left and right Align to [Notes](https://github.com/anastr/SpeedView/wiki/Notes).
- add Locale control.
- check sections.
- + 2 more
Add Notes1.1.1
📋 Changes
- add minSpeed #10 .
- support padding.
- add [Notes](https://github.com/anastr/SpeedView/wiki/Notes) beta.
Big Control1.1.0
📋 Changes
- add `unitTextSize` to all speedometers.
- add `trembleDegree` and `trembleDuration` Attributes.
- Control at the beginning and end of the Speedometer, using `startDegree` and `endDegree` Attributes, or `setStartDegree(int)` `setEndDegree(int)` methods.
- Control division of the speedometer, now you can change the long of lowSpeed and mediumSpeed segments, using `lowSpeedPercent` and `mediumSpeedPercent` Attributes, or `setLowSpeedPercent(int)` `setMediumSpeedPercent(int)` methods, issue #8 .
- support Right to Left Text, `speedometerTextRightToLeft` Attribute or `setspeedometerTextRightToLeft(boolean)` method.
- save 20% CPU usage.
- Relying on memory, which means few processes on UI thread.
- one speedometer may take [1 to 2] MB on memory.
new Speedometer1.0.9
📋 Changes
- new PointerSpeedometer.
- fix some methods.
- save CPU and Memory.
- update `realSpeedTo()` method.
- more control.
- delete `backgroundCircleColor` , use `Transparent` color to remove Circle background.
- update description.
- add _trembleDegree_ and _trembleDuration_, use method `setTrembleData()`.
- + 1 more
new Speedometer1.0.8
📋 Changes
- new RaySpeedometer.
- fix `on size change` issues.
- update preview.
- more control.
new Speedometerv1.0.6
📋 Changes
- new AwesomeSpeedometer.
- new realSpeedTo() method.
- more Dynamic text size.
new Speedometerv1.0.3
📋 Changes
- new DeluxeSpeedView with blur Effect.
- more Dynamic Colors.
- Change unit.
SpeedViewv1.0.0
📋 Changes
- Dynamic Colors.
- speedTo() method.
- Tremble Effect.
