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)

更多相关文章

  1. 一起学android之SharedPreferences 讲解(10)
  2. 我的Android学习笔记2(学Android怎能不懂java)
  3. Android(安卓)ORM 框架之 ActiveAndroid应用基础
  4. android上一些类型转换
  5. kotlin超简单recyclerView测试
  6. Android(安卓)定位GPS的使用
  7. Android(安卓)- 分享内容 - 给其他APP发送内容
  8. android是32-bit系统还是64-bit系统
  9. 从零开始--系统深入学习android(实践-让我们开始写代码-Android框

随机推荐

  1. Android Vold
  2. Android控件ToggleButton多状态按钮使用
  3. 关于repo下载android代码时候错误的处理
  4. android 各种xml资源的引用方式
  5. android之首选项相关 Preferences(二)
  6. Android程序的入口点
  7. Android(安卓)AlarmManager简单例子
  8. Android 链接 java 服务无法打开链接的问
  9. PhoneGap系列专题之二:使用PhoneGap云服务
  10. Android中的WiFi开发简明教程