![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
iteye_17448
这个作者很懒,什么都没留下…
展开
-
drawString(String messagetr, int x, int y, int anchor);函数anchor参数备忘
在LGame中,LGraphics类的public void drawString(String messagetr, int x, int y, int anchor);函数中,最后一个anchor参数指的是锚点,起到定位的作用,而“x”,“y”参数指的就是这个锚点的位置了。anchor参数事先规定了一些常量值,这些常量值组合可以定义一些,常用的锚点。如图所示。 ...2011-08-17 18:50:07 · 592 阅读 · 0 评论 -
android画任意曲线时,去除移动过程中出现莫名直线的方法
在android的ApiDemos中,画任意曲线(在FingerPaint这个例子中)的主要代码如下: private float mX, mY; private static final float TOUCH_TOLERANCE = 1;//这里我改为1 private void touch_start(...2011-02-07 12:13:15 · 205 阅读 · 0 评论 -
android之自定义Dialog
前段时间,做了一个android涂鸦板项目(http://mm.10086.cn/1007/300001153536.html?fw=411130),在项目中,用到了一些自定义的对话框,如图所示。 在参考了android提供的ApiDemos程序以后,这里对如何实现自己定义的对话框进行一下总结。在android的ApiDemos中的com.example.an...2011-04-19 10:45:08 · 92 阅读 · 0 评论