Skip to content

Releases: anastr/SpeedView

fix problem

28 Sep 12:23
Compare
Choose a tag to compare
  • fix StakeOverflowException 1164674
  • update Kotlin to v 1.3.50

Kotlin

15 Jul 17:43
Compare
Choose a tag to compare

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

Fix Bugs

21 Sep 05:25
5887bd4
Compare
Choose a tag to compare
  • 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);

new Effect

01 Apr 06:19
8242045
Compare
Choose a tag to compare

if you have been using old version of this library please read this to end.
this update coming with:

speedometer.setOnPrintTickLabel(new OnPrintTickLabel() {
    @Override
    public 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.

Fix Bugs.

04 Jan 06:37
4972412
Compare
Choose a tag to compare

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.

Fix / New

11 Sep 13:59
Compare
Choose a tag to compare

New Tick Values

19 Jul 06:57
Compare
Choose a tag to compare
  • 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.

Improve Base, new Gauge

03 Mar 05:51
Compare
Choose a tag to compare

by now, Gauge class is the base class for all Speedometers and Gauges,
and Speedometer class is extended Gauge to build custom Circle Speedometers.

  • 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.
  • new ImageLinearGauge.
  • add Notes For Unlimited Time.
  • add sv_speedTextPadding attribute.
  • add sv_cutPadding attribute to fix indicator cutting #12 when change speedometerMod.
  • add sv_unitTextColor attribute, now speed text and unit text are different thing.
  • safe handle speed in OnSpeedChangeListener with getCorrectIntSpeed().
  • set default decelerate value to 0.1f.
  • update documentation.
  • save CPU usage.
  • fix realSpeedTo method.
  • fix attributes issue with TubeSpeedometer.

Fix / Huge Update

10 Jan 13:15
Compare
Choose a tag to compare
  • Support API 8.
  • new image indicator.
  • new OnSectionChangeListener.
  • new speedometerMode: change size, style, indicator's position.
  • speed text:
    • new speedTextPosition: 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).
    • new unitSpeedInterval space between unitText and speedText.
  • change typeface for speed text, new attributes speedTextTypeface ,textTypeface.
  • add speedPercentTo(percent, moveDuration) method.
  • add setIndicator(Indicator indicator) method.
  • add resource image contractor to ImageNote.
  • add setIndicatorAt(int speed) method (move the indicator without Animation).
  • default indicatorColor is material blue.
  • update Documentation.
  • remove Tremble Data range.
  • fix:
    • PointerSpeedometer (startDegree and endDegree issues).
    • methods: speedPercentTo(int), setStartDegree(int), setEndDegree(int).
    • some setter methods (setSpeedometerWidth, setPadding).
    • change startDegree and endDegree together using new setStartEndDegree (int startDegree, int endDegree) method.

new Speedoeters

23 Dec 08:18
Compare
Choose a tag to compare
  • new TubeSpeedometer.
  • new ImageSpeedometer.
  • fix Create Speedometer Programmatically.
  • fix padding.
  • Ability to change indicators.
  • add left and right Align to Notes.
  • add Locale control.
  • check sections.
  • add Accelerate and Decelerate for realSpeedTo method.
  • fix setSpeedTextColor() method.