protected void onDraw(Canvas canvas) {
........
//如果要加入图片使用 drawBitmap()
canvas.drawCircle(cp.x, cp.y, 15f, paint);//绘制中心点
}
int sen = 50;//灵敏度 越大滑动点触控识别度越高
crossView.sen = 50;//可以这样设置
初始化显示位置如果需要在中间 调用 init(-1,-1) 恢复初始化。
获取当前点的左边 getEQ()返回一个数组 X= getEQ()[0];Y= getEQ()[1].
如果要做回显需要存储 X,Y的值,使用init(view,x,y)传入即可.
Copyright (C) 2016 forjrking
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.