What does top, left, right and bottom mean in Android Rect object

前端 未结 3 1905
情书的邮戳
情书的邮戳 2021-01-29 22:18

I have an Android project where I should make Apples fall. The apples are painted in a Rect. So I created a function that change the Rect position and repaint. Here\'s my functi

3条回答
  •  天涯浪人
    2021-01-29 22:37

    From the docs

    Parameters

    left The X coordinate of the left side of the rectangle

    top The Y coordinate of the top of the rectangle

    right The X coordinate of the right side of the rectangle

    bottom The Y coordinate of the bottom of the rectangle

提交回复
热议问题