类似油表表盘的显示 SpeedView

码农软件 · 软件分类 · Android UI 组件 · 2019-04-24 09:11:23

软件介绍

SpeedView,Android端的类似油表表盘的显示。效果很惊人,功能强大而且有多种外形。你可以更改任何东西的颜色。

运行效果:

示例代码:

添加SpeedView到你的布局文件

<com.github.anastr.speedviewlib.SpeedView
        android:id="@+id/speedView"
        android:layout_width="250dp"
        android:layout_height="wrap_content" />

从代码修改speed

SpeedView speedView = (SpeedView) findViewById(R.id.speedView);
// change speed to 50 Km/h
speedView.speedTo(50);

通过这行代码设置最大速度(默认是100)

speedView.setMaxSpeed(220);
/** 
  * see also:
  * speedView.setWithTremble(false);
  * speedView.setIndicatorColor(Color.BLUE);
  * speedView.setHighSpeedColor(Color.RED);
  * .....
  */

本文地址:https://www.codercto.com/soft/d/4265.html

High Performance Python

High Performance Python

Micha Gorelick、Ian Ozsvald / O'Reilly Media / 2014-9-10 / USD 39.99

If you're an experienced Python programmer, High Performance Python will guide you through the various routes of code optimization. You'll learn how to use smarter algorithms and leverage peripheral t......一起来看看 《High Performance Python》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

SHA 加密
SHA 加密

SHA 加密工具