Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

xsfelvis/PanelView

Repository files navigation

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博客

About

仪表盘的自定义view

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /