getTop():获取到的是View自身的顶边到其父布局顶边的距离

getLeft():获取到的是View自身的左边到其父布局左边的距离

getRight():获取到的是View自身的右边到其父布局左边的距离

getBottom():获取到的是View自身的底边到其父布局顶边的距离

 
一张图看懂Android ,view的getTop(),getBottom(),getLeft(),getRight....

相关文章:

  • 2021-06-22
  • 2021-05-25
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-11-15
猜你喜欢
  • 2021-12-25
  • 2021-05-07
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案