All Versions
11
Latest Version
Avg Release Cycle
124 days
Latest Release
1361 days ago

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 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.
    • for RaySpeedometer: sv_rayMarkWidth now points to the ray marks instead of sv_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 way speedometer.ticks = arrayListOf(0f, 25f, 50f, 75f, 100f)

    ๐Ÿ›  fixes:

  • v1.5.2 Changes

    February 23, 2020

    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.

      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

    • ImageIndicator accept drawable #171.
    • ๐Ÿ”„ change Interfaces to Function types.
    • ๐Ÿ”„ change OnPrintTickLabel interface to OnPrintTickLabelListener 'typealias'.
    • replace SpeedTextFormat with SpeedTextListener 'typealias' #173.
    • access to minSpeed & maxSpeed directly.
    • ๐Ÿ›  fix #169 #172 #174 .
  • 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, 2019

    rewrite 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, 2018

    if 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 return SpannableString 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 use sv_withIndicatorLight="true" and you can customize its color sv_indicatorLightColor="#BB0000FF"

    • ๐Ÿ†• new notes positions.
      if you were using CenterIndicator for Note position, change to QuarterSpeedometer
      if you were using TopIndicator, change to TopSpeedometer.
  • 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 and sv_maxSpeed attributes.

  • v1.1.6 Changes

    September 11, 2017
  • v1.1.5 Changes

    July 19, 2017
    • new speed value label at each tick point #22 #31 .
    • Deprecate getCorrectSpeed(), getCorrectIntSpeed() and replace with getCurrentSpeed(), 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.