android自己写的类似刻度尺的东西(8)
来源:未知 责任编辑:责任编辑 发表时间:2013-12-06 08:44 点击:次
this.initValue = initValue;
this.interval = interval;
this.unit = unit;
}
@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
}
@Override
public void surfaceCreated(SurfaceHolder holder) {
new Thread(this).start();
}
@Override
public void surfaceDestroyed(SurfaceHolder holder) {
}
@Override
public void run() {
draw(0);
}
private int move = 10; //每次移动的距离
private int initBx = 77; //图片上X坐标
private int by = 0; //图片上Y坐标
private int bw = 258; //图片宽度
private int bh = 31; //图片高度
private int sx = 18; //画布X坐标
private int sy = 36; //画布Y坐标
private int jiange = 51; //大刻度之间距离
private int num_left = 33; //最左边数字到左边的距离
private int RESULT_X = 36; //结果的X轴位置
private int RESULT_Y = 25; //结果的Y轴位置
private int RESULT_SIZE = 24; //结果的字体大小
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>