当前位置:网站首页>Coordinate system of view
Coordinate system of view
2022-07-05 09:53:00 【Anemone】
View The coordinate system of
Android Coordinate system
Android The coordinate system in the system takes the vertex in the upper left corner of the screen as the origin , The origin is... To the right X The positive direction of the axis , The origin is downward Y The positive direction of the axis . Use in touch events getRawX() and getRawY() The obtained coordinates are the coordinate values based on this coordinate system .( notes : raw raw , Translated here into The original , Get the original X coordinate , Get the original Y coordinate )
View Coordinate system
View relevant
- Related to his father's layout , Distance to parent layout
- getTop()
- getLeft()
- getRight()
- getBottom
MotionEvent relevant
- Related to itself
- getX() Get the distance from the click event to the left of the control , Attempt coordinates
- getY() Get the distance from the click event to the top edge of the control , Attempt coordinates
- getRawX() Get the distance from the click event to the left of the whole screen , Absolute coordinates
- getRawY() Get the distance from the click event to the top edge of the whole screen , Attempt coordinates

Reference blog
边栏推荐
- The comparison of every() and some() in JS uses a power storage plan
- Analysis on the wallet system architecture of Baidu trading platform
- Fluent development: setting method of left and right alignment of child controls in row
- How do enterprises choose the appropriate three-level distribution system?
- Android privacy sandbox developer preview 3: privacy, security and personalized experience
- Baidu app's continuous integration practice based on pipeline as code
- 从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择
- 搞数据库是不是越老越吃香?
- 【饿了么动态表格】
- Solve liquibase – waiting for changelog lock Cause database deadlock
猜你喜欢

基于宽表的数据建模应用

Apache DolphinScheduler 入门(一篇就够了)

百度交易中台之钱包系统架构浅析

From "chemist" to developer, from Oracle to tdengine, two important choices in my life

Roll up, break 35 - year - old Anxiety, animation Demonstration CPU recording Function call Process

Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)

Tdengine connector goes online Google Data Studio app store

【技术直播】如何用 VSCode 从 0 到 1 改写 TDengine 代码
![[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode

剪掉ImageNet 20%数据量,模型性能不下降!Meta斯坦福等提出新方法,用知识蒸馏给数据集瘦身...
随机推荐
【饿了么动态表格】
Community group buying has triggered heated discussion. How does this model work?
Viewpager pageradapter notifydatasetchanged invalid problem
Uncover the practice of Baidu intelligent testing in the field of automatic test execution
Oracle combines multiple rows of data into one row of data
Unity SKFramework框架(二十四)、Avatar Controller 第三人称控制
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
代码语言的魅力
正式上架!TDengine 插件入驻 Grafana 官网
揭秘百度智能测试在测试自动执行领域实践
植物大战僵尸Scratch
Project practice | excel export function
TDengine 离线升级流程
[NTIRE 2022]Residual Local Feature Network for Efficient Super-Resolution
[sourcetree configure SSH and use]
The comparison of every() and some() in JS uses a power storage plan
[object array A and object array B take out different elements of ID and assign them to the new array]
LeetCode 556. Next bigger element III
SMT32H7系列DMA和DMAMUX的一点理解
Vs code problem: the length of long lines can be configured through "editor.maxtokenizationlinelength"