Android(安卓)Rect和RectF的区别
16lz
2021-01-25
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/
更多相关文章
- Android之使用AIDL时的跨进程回调—Server回调Client
- Android(安卓)JNI实例代码(一)
- Android在标准linux基础上对休眠唤醒的实现(一)(二)(三)【转】
- Android动画四种类型xml布局
- Android(安卓)出现 avc: denied { execmod }如何处理?
- 缓存统一管理工具类--android
- android图片资源的适配问题
- android中各种数据类型之间转换
- 【Android(安卓)开发教程】理解Intent对象