RectF类
2016-08-06 11:40
78 查看
Android RectF类的构造函数参数说明:
以下是API中的说明:
Added in API level 1
Create a new rectangle with the specified coordinates. Note: no range checking is performed, so the caller must ensure that left <= right and top <= bottom.
Parameters
比如new一个RecF类:
RectF rf1 = new RectF(100,100,200,200);
则在屏幕中的位置示意图为:
以下是API中的说明:
public RectF (float left, float top, float right, float bottom)
Added in API level 1Create a new rectangle with the specified coordinates. Note: no range checking is performed, so the caller must ensure that left <= right and top <= bottom.
Parameters
left | The X coordinate of the left side of the rectangle |
---|---|
top | The Y coordinate of the top of the rectangle |
right | The X coordinate of the right side of the rectangle |
bottom | The Y coordinate of the bottom of the rectangle |
RectF rf1 = new RectF(100,100,200,200);
则在屏幕中的位置示意图为:
相关文章推荐
- 235.leetcode Lowest Common Ancestor of BST(easy)[二叉搜索树 递归]
- HDU 4324 Triangle LOVE (拓扑排序)
- 260.leetcode Single Number III(medium)[两个单数]
- hdu 1754 I Hate it(线段树的单节点更新,求区间最大值)
- 137.leetcode Single Number II(medium)[单数 三次]
- (四)、类型转换
- 简易冒泡排序
- 嵌入式C语言知识整理(1)
- Lightoj1259——Goldbach`s Conjecture(哥德巴赫猜想)
- 杭电ACM—1106 排序
- 安卓实战开发之JNI再深入了解
- MySQL学习笔记第3课(共10课)
- springmvc传值
- 用两种方法实现栈---顺序表和链表
- ByteBuffer的心得
- caffe——cifar10模型训练自己的数据
- ubuntu下安装ros出现“无法下载-package.ros.org中某个包-校验和不符”的解决方法
- Groovy
- 理解一般指针和指向指针的指针
- Linux下的C语言学习笔记(3)