Simple gauge view like speedmeter in android?

后端 未结 7 1012
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 16:52

I want to have a simple gauge view where i will define the start value and the end value and have a pointer to show given variable value.

7条回答
  •  遥遥无期
    2020-12-07 17:30

    On this site you will find some free customizable gauges.

    ScComponents

    Very easy to install and well documented. For example you can have for free something like this in 5 minutes following the instruction below.

    Go on the above linked website. Click the GR004 and after the popup appear click on "Download for FREE". The library will downloaded, unzip and follow the instruction to install the library (aar file) inside your Android project.

    Write this code in your XML layout and your gauge will done:

    
    

    You have many XML options to customize it:

    • sccAnimDuration
    • sccEnableTouch
    • sccInverted
    • sccFontName
    • sccLabelsSizeAdjust
    • sccMajorTicks
    • sccMaxValue
    • sccMinorTicks
    • sccMinValue
    • sccShowContour
    • sccShowLabels
    • sccText
    • sccValue

    And the related function by coding.

提交回复
热议问题