onTouch에서 ACTION_MOVE가 않먹습니다
먹게하거나 동일한 동작을 하려면 어떻게 해야하나요?
도와주세요 ㅠㅠ
view는 꼭 TextView가 아니라도 상관없습니다.
public class Multitouch extends Service { //Service 상속받았어요
public void onCreate() {
super.onCreate();
tv = new TextView(this); //뷰 생성
tv.setText("이 뷰는 항상 위에 있다.");
tv.setTextSize(TypedValue.COMPLEX_UNIT_SP, 18);
tv.setTextColor(Color.BLUE);
tv.setOnTouchListener(new OnTouchListener(){ // 이벤트 등록
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
int action = event.getAction()& MotionEvent.ACTION_MASK; //액션검출
if(action == MotionEvent.ACTION_OUTSIDE){ //액션필터 이것만먹히고 다른게 않되네요
Log.d("tag","멍멍"+action);
}
if(action == MotionEvent.ACTION_MOVE){ // 이건 먹히지 않습니다 ㅠㅠ
Log.d("tag","멍멍"+action);
}
}
}