Moosphan / Android-Daily-Interview

:pushpin:每工作日更新一道 Android 面试题,小聚成河,大聚成江,共勉之~

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2019-12-26:Android中View几种常见位移方式的区别?

MoJieBlog opened this issue · comments

  • setTranslationX/Y
  • scrollBy/scrollTo
  • offsetTopAndBottom/offsetLeftAndRight
  • 动画
  • margin
  • layout

这些位移的区别

layout ,补间动画,scroller,layoutParams, invalilate