Skip to content
Anas Altair edited this page Mar 3, 2017 · 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 Correct speed shown as INTEGER or FLOAT.
  • sv_unit to change unit Text.
  • sv_unitUnderSpeedText to make unit Text under speed Text.
  • 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_lowSpeedPercent&sv_mediumSpeedPercent the end of low and medium sections.
  • 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_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_lowSpeedColor the color of low section.
  • sv_mediumSpeedColor the color of medium section.
  • sv_highSpeedColor the color of high section.
  • sv_speedometerColor some speedometer doesn't have (low, medium, high) colors, so it just have speedometerColor.
  • sv_speedometerWidth the width of all (low, medium, high) sections.
  • 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_speedometerMode Change the overall shape, see how it work.
  • sv_cutPadding fix indicator cutting when change speedometerMod.