成员属性如下,方便下面讲解:
/**
- 四个绿色边角对应的长度
*/
private int ScreenRate;
/**
- 四个绿色边角对应的宽度
*/
private static final int CORNER_WIDTH = 5;
/**
- 扫描框中的中间线的宽度
*/
private static final int MIDDLE_LINE_WIDTH = 6;
/**
- 扫描框中的中间线的与扫描框左右的间隙
*/
private static final int MIDDLE_LINE_PADDING = 5;
/**
- 中间那条线每次刷新移动的距离
*/
private static final int SPEEN_DISTANCE = 5;
/**
- 手机的屏幕密度
*/
private static float density;
/**
- 字体大小
*/
private static final int TEXT_SIZE = 16;
/**
- 字体距离扫描框下面的距离
*/
private static final int TEX