摘要: 注:一定要通过view的onTouchEvent调用mScaleGestureDetector.onTouchEvent(ev);,只有这样才能调用回调函数:onScaleBegin具体可以参加:android源码:KenBurnsActivity.java下面是转载的文章:Detects transformation gestures involving more than one pointer ("multitouch") using the suppliedMotionEvents.TheScaleGestureDetector.OnScaleGestureList 阅读全文
posted @ 2012-10-12 16:40 tanqiantot 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 可以再layout里加入以下属性:android:onClick=、 <Button android:id="@+id/done" android:onClick="onClickHandler" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/done"/>然后再java里直接写public void onClickHandler( View 阅读全文
posted @ 2012-10-12 15:59 tanqiantot 阅读(115) 评论(0) 推荐(0) 编辑