Skip to content
Anas Altair edited this page Dec 28, 2019 · 7 revisions

this is general options to styling basic options. Here are some attributes "in XML" to style gauges and speedometers (All of these have setting methods in code):

for All Gauges

  • sv_speedTextFormat to make Current speed shown as INTEGER or FLOAT.
  • sv_tickTextFormat to make ticks shown as INTEGER or FLOAT.
  • sv_unit to change unit Text.
  • sv_unitUnderSpeedText to make unit Text under speed Text.
    • true :
    • false :
  • sv_unitSpeedInterval space between unit Text and speed Text.
  • sv_speedTextTypeface change speed-unit Text's font, (put font's file path in assets).
  • sv_textTypeface change Text's font, (put font's file path in assets).
  • sv_speedTextColor the color of speed text.
  • sv_unitTextColor the color of unit text.
  • sv_textColor the color of other text in speedometer.
  • sv_speedTextSize the size of speed text.
  • sv_unitTextSize the size of unit text.
  • sv_textSize the size of other text in speedometer.
  • sv_textRightToLeft flip speed and unit text.
  • sv_speedTextPosition Change position of speed-unit Text, see how it work.
  • sv_speedTextPadding Speed-Unit Text padding.

for Speedometers family

  • sv_backgroundCircleColor exactly like backgroundColor, but in circle shape.
  • sv_centerCircleRadius center circle width.
  • sv_indicatorColor the color of the indicator.
  • sv_centerCircleColor the color of the center circle "doesn't allow to All Speedometer".
  • sv_markColor the color of the marks "doesn't allow to All Speedometer".
  • sv_speedometerColor some speedometer doesn't have (sections) colors, so it just have speedometerColor.
  • sv_speedometerWidth the width of all section bar.
  • sv_startDegree&sv_endDegree the start of sections, look at Start and End Degree.
  • sv_indicator to change indicator shape.
  • sv_indicatorWidth the width of indicator.
  • sv_withIndicatorLight to add Light Effect to the indicator.
  • sv_indicatorLightColor to change lightEffect's color.
  • sv_speedometerMode Change the overall shape, see how it work.
  • sv_cutPadding fix indicator cutting when change speedometerMod.
  • sv_tickNumber add Ticks.
    • sv_tickPadding add padding for Ticks.