美文网首页
2018-11-29

2018-11-29

作者: 噜噜1231 | 来源:发表于2018-12-20 13:35 被阅读0次

这周搞view事件


费劲啊😭


View基础知识

  1. View代表界面层控件的抽象
  2. View位置
    getLeft,getTop,getRight,getBottom 都是相对父布局的相对位置
    x = left + translationX
    y = top + translationY
    平移过程中只改变translationX,translationY
  3. MotionEvent和TouchSlop
    Action_down....

相关文章

网友评论

      本文标题:2018-11-29

      本文链接:https://www.haomeiwen.com/subject/zunfcqtx.html