
Android
loverszhaokai
海到尽头天作岸,
山登绝顶我为峰。
展开
-
How-to create a Calculator on Google Android: Part I
<br />Calculator UI<br />First of all, we are going to design the UI in XML. We can do it “by hand”, without any external help, or we can use DroidDraw.<br /> <br />This time, we are going to use DroidDraw, this way we can see how the XML is going to be bu转载 2011-04-06 16:52:00 · 683 阅读 · 0 评论 -
Android系列教程之七:EditText使用详解-包含很多教程上看不到的功能演示
<br />Android系列教程目录:Android教程之一:Window下搭建Android开发环境Android教程之二:Linux下搭建Android开发环境Android教程之三:第一个Android应用,HelloWorldAndroid系列教程之四:Android项目的目录结构Android系列教程之五:Activity的生命周期Android系列教程之六:TextView小组件的使用--附带超链接和跑马灯效果本文版权归飞雪无情 所有,转载请注明出处, 永久链接:http://flysnow.转载 2011-04-06 15:27:00 · 955 阅读 · 1 评论 -
How-to create a Calculator Using Google Android: Part II
<br />Placing the XML<br />In the First part of this article series we created, in XML, the User Interface. Now its time to get started with the Google Android code.<br />First of all, we need to create a new Android Project. We need to have configured Ecl转载 2011-04-06 16:53:00 · 581 阅读 · 0 评论 -
简述Android触摸屏手势识别
<br /> <br />很多时候,利用触摸屏的Fling、Scroll等Gesture(手势)操作来操作会使得应用程序的用户体验大大提升,比如用Scroll手势在浏览器中滚屏,用Fling在阅读器中翻页等。在Android系统中,手势的识别是通过GestureDetector.OnGestureListener接口来实现的,不过William翻遍了Android的官方文档也没有找到一个相关的例子,API Demo中的TouchPaint也仅仅是提到了onTouch事件的处理,没有涉及到手势。Android转载 2011-04-24 14:29:00 · 451 阅读 · 0 评论 -
利用OnGestureListener识别用户手势
<br /><br />android可以识别用户的手势(即用户用手指滑动的方向),通过用户不同的手势,从而做出不同的处理,下面是一个识别用户手势的效果:<br /><br /> <br />实现过程是,继承OnGestureListener方法,通过坐标来实现。下面是主要代码:<br />public class GestureTest extends Activity implements OnTouchListener, <br /> OnGestureListener {<br />转载 2011-04-24 17:44:00 · 448 阅读 · 0 评论