1、精度不一樣,Rect是使用int類型作為數值,RectF是使用float類型作為數值
2、兩個類型提供的方法也不是完全一致
Rect:
equals(Object obj) (for some reason it as it's own implementation of equals)
exactCenterX()
exactCenterY()
flattenToString()
toShortString()
unflattenFromString(String str)
RectF:
round(Rect dst)
roundOut(Rect dst)
set(Rect src)
sourceurl:http://longshuai2007.blog.163.com/blog/static/142094414201161832810371/
