SpeedView v1.5.0 Release Notes
Release Date: 2019-12-28 // about 4 years ago-
๐ 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.