Rect and RectF in Android SDK
2011-11-18 17:32
337 查看
转载:http://stackoverflow.com/questions/4913643/rect-and-rectf-in-android-sdk
Using
define its edges using integers and using
are defined as floats.
Looking at them more carefully I have spotted a few differences actually. I will only list what one implementation has more compared to the other one.
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)
So apparently there are some differences.
Using
Rectyou
define its edges using integers and using
RectFthey
are defined as floats.
Looking at them more carefully I have spotted a few differences actually. I will only list what one implementation has more compared to the other one.
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)
So apparently there are some differences.
相关文章推荐
- Download and Install AndroidSDK in Ubuntu 12.04 (Precise Pangolin)
- open android sdk manager and avd manager in Mac
- I have updated Android SDK to rev. 22 yesterday and there is no apkbuilder in tools
- How to install Android SDK and play with Android 2.0 in the emulator
- Download and Install AndroidSDK in Ubuntu 12.04 (Precise Pangolin)
- "Android SDK and AVD Manager" cannot be made visible because all of its children are in unavailable
- "Android SDK and AVD Manager" cannot be made visible because all of its children are in unavailable
- Android 1.5 project in Eclipse and whenever I merely have an x
- Android中Rect和RectF的区别
- Android SDK no swt-pi-gtk-3550 or swt-pi-gtk in swt.library.path, java.library.path or the jar解决
- Difference Between Thread and AsyncTask in Android
- eclipse在windows下没有Android SDK and AVD Manager
- On Memory Leaks in Java and in Android.
- Create Native iOS, Android, Mac and Windows apps in C#
- Android 2.3.4 download and build in ubuntu 11.10
- Android中Rect和RectF的区别与联系
- Android安装 Location of the Android SDK has not been setup in the preferences 问题
- A2DP Sink, AVRCP Controller and HFP Client in Android L
- Android Rect和RectF的区别
- A2DP Sink, AVRCP Controller and HFP Client in Android L