//折线图添加随机点
private void setPoints(final LsspBrokenLineView lsspBrokenLineView) {
//设置点位
final List<PointBean> list = new ArrayList<>();
lsspBrokenLineView.post(new Runnable() {
@Override
public void run() {
float time = 0;
for (int i = 0; i < 11; i++) {
float health = 48 + ((new Random().nextFloat() * (53 - 48)));
list.add(lsspBrokenLineView.getPointByTimeAndHealth(time, health));
time++;
}
lsspBrokenLineView.addPoints(list);
lsspBrokenLineView.excuteAnim();
}
});
}
-
Notifications
You must be signed in to change notification settings - Fork 4
LiLiTaBaBa/LsspView
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
LsspViewLssp自定义View的实列、 Lssp原型头像显示View、 Lssp圆形数据显示View 、 Lssp南丁格尔玫瑰图View、 Lssp南丁格尔玫瑰饼状图View 、 Lssp折线图View 、 Lssp柱状图View
Resources
Stars
Watchers
Forks
Packages 0
No packages published