Changelog History
Page 1
-
v1.5.3 Changes
July 27, 2020๐ new in this version:
- dynamic marks #59 :
sv_marksNumber
: set custom number of marks.sv_marksPadding
: padding from speedometer edge.sv_markHeight
andsv_markWidth
: size of marks.sv_markStyle
: ROUND or BUTT.markColor
: color of marks.
- ๐
enum
Style
class now moved out ofSection
class. - ๐
Style.SQUARE
is Deprecated , useStyle.BUTT
. - for RaySpeedometer:
sv_rayMarkWidth
now points to the ray marks instead ofsv_markWidth
. - ๐ change custom ticks from list of speed values to list of speed offset scale [0 -1]:
speedometer.ticks = arrayListOf(0f, .25f, .5f, .75f, 1f)
, old wayspeedometer.ticks = arrayListOf(0f, 25f, 50f, 75f, 100f)
๐ fixes:
- ๐ fix null custom tick label.
- ๐ fix preview with custom font.
- ๐ fix #177 .
- ๐ fix #178 .
- ๐ fix #185 .
- dynamic marks #59 :
-
v1.5.2 Changes
February 23, 2020Sections
- โ 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.section.width = .. section.padding = ..
๐ support transparent color.
๐ support NoSection.
๐ new style, also available in XML
sv_sectionStyle
:Section.Style.SQUARE
Section.Style.ROUND
โ add
doOnSections
extension.
๐ fixes and enhancement
- โ add start and end value:
-
v1.5.0 Changes
December 28, 2019๐ new multi-sections:
speedView.addSections(Section(.25f, Color.LTGRAY) // section from 0% to 25% , Section(.50f, Color.YELLOW) // section from 25% to 50% , Section(.75f, Color.BLUE)// section from 50% to 75% , Section(1f, Color.RED)// section from 75% to 100%// or simply if you need to add 5 sections equal to each others:speedView.makeSections(5) )
๐ new support of (no section)
OnSectionChangeListener
now used Section class:speedView.onSectionChangeListener = object :OnSectionChangeListener { override fun onSectionChangeListener(previousSection: Section?, newSection: Section?) { if (newSection == null) // there is no section here!returnif (newSection.speedOffset == 1f) // last section speedView.addNote(TextNote(context, "slow down")) } }
โ remove 3D Effects from TubeSpeedometer (isWithEffects3D) .
๐ change indicator width and color:
speedView.indicator.width = ... speedView.indicator.color = ...
Sections and indicator are now Observable by its speedometer.
โ add
sv_centerCircleRadius
.0๏ธโฃ custom default ticks.
all speedometers are open.
-
v1.4.1 Changes
September 28, 2019- ๐ fix StakeOverflowException 1164674
- โก๏ธ update Kotlin to v 1.3.50
-
v1.4.0 Changes
July 15, 2019rewrite the library in kotlin
- easy to understand.
- less NullPointerException.
- smaller size.
this version may be unstable.. if you had any issue with kotlin Go back to version 1.3.1
-
v1.3.0 Changes
September 21, 2018- ๐ fix getter and setter methods of SpeedometerBackColor for TubeSpeedometer.
- ๐ fix color doesn't change at runtime for 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 .
you can use:// add 4 decimal places for speedText.speedometer.setSpeedTextFormat(4);
-
v1.2.0 Changes
April 01, 2018if you have been using old version of this library please read this to end.
โก๏ธ this update coming with:- ๐ fix text size attribute in AwesomeSpeedometer #70 .
๐ change the color of just one tick #71 .
now you can use SpannableString for Ticks just use custom tick label and returnSpannableString
like this:speedometer.setOnPrintTickLabel(new OnPrintTickLabel() { @Overridepublic CharSequence getTickLabel(int tickPosition, float tick) { if (tick == 0) { SpannableString s = new SpannableString(String.format(Locale.getDefault(), "%d", (int)tick)); s.setSpan(new ForegroundColorSpan(0xffff1117), 0, 1, 0); // change first char color to Red.return s; } // null means draw default tick.return null; } });
min and max speed in float #64 .
new indicator light effect #78 (beta).
new effect behind the indicator, _ it still unstable _ if you like to use this effect just usesv_withIndicatorLight="true"
and you can customize its colorsv_indicatorLightColor="#BB0000FF"
- ๐ new notes positions.
if you were usingCenterIndicator
for Note position, change toQuarterSpeedometer
if you were usingTopIndicator
, change toTopSpeedometer
.
-
v1.1.7 Changes
January 04, 2018๐ 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:\<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
andsv_maxSpeed
attributes. -
v1.1.6 Changes
September 11, 2017- New : KiteIndicator, NeedleIndicator.
- Add : custom tick label dd4343f use
OnPrintTickLabel
interface #35 . - Add : custom ticks position 25a0cd9 use
setTicks(0, 10, 60, ...)
method #39. - โ delete deprecated methods (
getCorrectSpeed
,getCorrectIntSpeed
) use (getCurrentSpeed
,getCurrentIntSpeed
). - โ Add : ability to remove the pointer from 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.
- Fix :
sv_indicatorColor
andsv_indicatorWidth
attributes ed09701.
-
v1.1.5 Changes
July 19, 2017- new speed value label at each tick point #22 #31 .
- Deprecate
getCorrectSpeed(), getCorrectIntSpeed()
and replace withgetCurrentSpeed(), getCurrentIntSpeed()
, No correction anymore. - โ add
setMinMaxSpeed(minSpeed, maxSpeed)
method. - ๐ fix image scale in ImageLinearGauge.
- ๐ fix Render issues #32 #34 .
- ๐ fix blur effect for inactive marks for DeluxeSpeedView.