(备忘)Rect和RectF的区别

1、Rect的变量使用int类型,而RectF使用float类型。

2、一些方法区别

<1>、Rect类

equals(Object obj) (for some reason it as it's own implementation of equals)
exactCenterX()
exactCenterY()
flattenToString()
toShortString()
unflattenFromString(String str)


<2>、RectF类
round(Rect dst)
roundOut(Rect dst)
set(Rect src)

posted @ 2015-11-15 21:03  BlogCommunicator  阅读(410)  评论(0编辑  收藏  举报