标签:android http io ar java sp 文件 on 问题
============问题描述============
============解决方案1============
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/poplayout" android:layout_width="match_parent" android:layout_height="match_parent" > ...... </RelativeLayout>
class MyGestureListener implements OnTouchListener, OnGestureListener { @Override public boolean onDown(MotionEvent e) { // TODO Auto-generated method stub return false; } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { return false; } @Override public void onLongPress(MotionEvent e) { // TODO Auto-generated method stub } @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { return false; } @Override public void onShowPress(MotionEvent e) { // TODO Auto-generated method stub } @Override public boolean onSingleTapUp(MotionEvent e) { // TODO Auto-generated method stub return false; } @Override public boolean onTouch(View v, MotionEvent event) { gesture_detector.onTouchEvent(event); return false; } }
RelativeLayout poplayout=poplayout=(RelativeLayout)findViewById(R.id.pop); poplayout.setOnTouchListener(new MyGestureListener());
标签:android http io ar java sp 文件 on 问题
原文地址:http://www.cnblogs.com/lmyangbk/p/4033917.html