PanelView - 儀表盤的自定義view

PanelView

儀表盤的自定義view

How to use

add a PanelView.PanelView into your xml

<PanelView.PanelView
        android:id="@+id/panView"
        panel:Unit=" Km/h"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="當前速度"/>

more attrs to see values/attr,you can choose attr you need

you can also change attr by calling method like,more details to see PanelView.java

setPercent(int percent);
setText(String text);
setTextSize(int size);
setArcColor(int color);
setPointerColor(int color);
setArcWidth(int width);
setPointerColor(int color);
setAcrStartColor(int acrStartColor);
setAcrEndColor(int acrEndColor);<br>
setUnit(String unit);<br>

More to see my csdn blog

我的csdn博客

項目地址: https://github.com/xsfelvis/PanelView

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!