Moosphan/Android-Daily-Interview

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

MoJieBlog opened this issue · 1 comments

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

这些位移的区别

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