摘要:        
题外话: /** * A ViewGroup is a special view that can contain other views * (called children.) The view group is the base class for layouts and views * containers. This class also defines the * android.view.ViewGroup.LayoutParams class which serves as the base * class for layouts parameters.一个ViewGroup是    阅读全文
posted @ 2012-09-25 10:45
大脚印
阅读(1134)
评论(0)
推荐(0)
        
            
        
        
摘要:        
我们在很多应用中会用到Android的手势识别,比如单击,长按,滑动等等,这时候就需要我们监听用户的触摸事件。在实现这个功能的时候,有两个接口看上去有点像:OnTouchEvent和OnGestureListener。(我好像一直比较误会)假设一个类实现了OnGestureListener接口,那么它需要实现的方法如下: 1 import android.app.Activity; 2 import android.view.GestureDetector.OnGestureListener; 3 import android.view.MotionEvent; 4 5 public cla.    阅读全文
posted @ 2012-09-25 10:04
大脚印
阅读(851)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号