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/

更多相关文章

  1. Android之使用AIDL时的跨进程回调—Server回调Client
  2. Android(安卓)JNI实例代码(一)
  3. Android在标准linux基础上对休眠唤醒的实现(一)(二)(三)【转】
  4. Android动画四种类型xml布局
  5. Android(安卓)出现 avc: denied { execmod }如何处理?
  6. 缓存统一管理工具类--android
  7. android图片资源的适配问题
  8. android中各种数据类型之间转换
  9. 【Android(安卓)开发教程】理解Intent对象

随机推荐

  1. (ios实现)用c/c++混合编程方式为ios/andr
  2. Kotlin Android
  3. Android(安卓)N Settings 架构剖析
  4. 正确获得android设备的IP地址
  5. Android的Proxy/Delegate Application框
  6. [软件]安卓手机 kindle app 手工导入mobi
  7. Android系统使用global key 一键启动指定
  8. Android(安卓)RenderScript 使用 Struct
  9. android逆向学习,笔记(四)IDA Pro Android(
  10. 7.0、Android(安卓)Studio命令行工具