-
-
Notifications
You must be signed in to change notification settings - Fork 324
Style
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):
-
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.
-
sv_backgroundCircleColor
exactly likebackgroundColor
, 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 havespeedometerColor
. -
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.
-
if you have any idea, image, template please open new issue and give me the image , and i well try to add it to the Library, it must be possible to drawn, if you like this library you can support it.