zoukankan      html  css  js  c++  java
  • MotionEvent常见值

    常见的动作常量:

         public static final int ACTION_DOWN        = 0;单点触摸动作

         public static final int ACTION_UP               = 1;单点触摸离开动作
         public static final int ACTION_MOVE          = 2;触摸点移动动作
         public static final int ACTION_CANCEL       = 3;触摸动作取消
         public static final int ACTION_OUTSIDE      = 4;触摸动作超出边界
         public static final int ACTION_POINTER_DOWN     = 5;多点触摸动作
         public static final int ACTION_POINTER_UP       = 6;多点离开动作
    以下是一些非touch事件
         public static final int ACTION_HOVER_MOVE       = 7;
         public static final int ACTION_SCROLL           = 8;
         public static final int ACTION_HOVER_ENTER      = 9;
         public static final int ACTION_HOVER_EXIT       = 10;

    掩码常量

         ACTION_MASK = 0X000000ff 动作掩码
         ACTION_POINTER_INDEX_MASK = 0X0000ff00 触摸点索引掩码

         ACTION_POINTER_INDEX_SHIFT = 8 获取触摸点索引需要移动的位数

         ACTION_POINTER_INDEX_SHIFT = 8 获取触摸点索引需要移动的位数

  • 相关阅读:
    2013国内IT行业薪资对照表【技术岗位】
    Eclipse查看子类
    whereis 查找命令全路径
    开张了
    Ruby1.8中单行字符串写在多行
    FEMTO是什么
    FUSE文件系统
    魔兽私服pvpgn搭建
    linux网络源码分析(1)
    freehosting申请空间和ssh D设置
  • 原文地址:https://www.cnblogs.com/newcaoguo/p/5807982.html
Copyright © 2011-2022 走看看