-
-
Notifications
You must be signed in to change notification settings - Fork 329
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_speedTextFormatto make Current speed shown as INTEGER or FLOAT. -
sv_tickTextFormatto make ticks shown as INTEGER or FLOAT. -
sv_unitto change unit Text. -
sv_unitUnderSpeedTextto make unit Text under speed Text.- true :
- false :
- true :
-
sv_unitSpeedIntervalspace between unit Text and speed Text. -
sv_speedTextTypefacechange speed-unit Text's font, (put font's file path in assets). -
sv_textTypefacechange Text's font, (put font's file path in assets). -
sv_speedTextColorthe color of speed text. -
sv_unitTextColorthe color of unit text. -
sv_textColorthe color of other text in speedometer. -
sv_speedTextSizethe size of speed text. -
sv_unitTextSizethe size of unit text. -
sv_textSizethe size of other text in speedometer. -
sv_textRightToLeftflip speed and unit text. -
sv_speedTextPositionChange position of speed-unit Text, see how it work. -
sv_speedTextPaddingSpeed-Unit Text padding.
-
sv_backgroundCircleColorexactly likebackgroundColor, but in circle shape. -
sv_centerCircleRadiuscenter circle width. -
sv_indicatorColorthe color of the indicator. -
sv_centerCircleColorthe color of the center circle "doesn't allow to All Speedometer". -
sv_markColorthe color of the marks "doesn't allow to All Speedometer". -
sv_speedometerColorsome speedometer doesn't have (sections) colors, so it just havespeedometerColor. -
sv_speedometerWidththe width of all section bar. -
sv_startDegree&sv_endDegreethe start of sections, look at Start and End Degree. -
sv_indicatorto change indicator shape. -
sv_indicatorWidththe width of indicator. -
sv_withIndicatorLightto add Light Effect to the indicator. -
sv_indicatorLightColorto change lightEffect's color. -
sv_speedometerModeChange the overall shape, see how it work. -
sv_cutPaddingfix indicator cutting when change speedometerMod. -
sv_tickNumberadd Ticks.-
sv_tickPaddingadd 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.