当前位置:网站首页>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
边栏推荐
- Common fault analysis and Countermeasures of using MySQL in go language
- Apache DolphinScheduler 系统架构设计
- [object array A and object array B take out different elements of ID and assign them to the new array]
- TDengine ×英特尔边缘洞见软件包 加速传统行业的数字化转型
- 初识结构体
- ThreadLocal source code learning
- uni-app---uni.navigateTo跳转传参使用
- Windows uses commands to run kotlin
- [JS sort according to the attributes in the object array]
- [two objects merged into one object]
猜你喜欢
The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
Deep understanding of C language pointer
tongweb设置gzip
Node の MongoDB Driver
分布式数据库下子查询和 Join 等复杂 SQL 如何实现?
【C语言】动态内存开辟的使用『malloc』
Android privacy sandbox developer preview 3: privacy, security and personalized experience
Project practice | excel export function
The writing speed is increased by dozens of times, and the application of tdengine in tostar intelligent factory solution
How to implement complex SQL such as distributed database sub query and join?
随机推荐
微信小程序获取住户地区信息
Unity SKFramework框架(二十三)、MiniMap 小地图工具
SQL learning group by multi table grouping scenario
写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
The most comprehensive promotion strategy: online and offline promotion methods of E-commerce mall
How to choose the right chain management software?
Mobile heterogeneous computing technology GPU OpenCL programming (Advanced)
Online chain offline integrated chain store e-commerce solution
基于宽表的数据建模应用
From "chemist" to developer, from Oracle to tdengine, two important choices in my life
Solve the problem of no all pattern found during Navicat activation and registration
What should we pay attention to when developing B2C websites?
Principle and performance analysis of lepton lossless compression
Why do offline stores need cashier software?
Solve liquibase – waiting for changelog lock Cause database deadlock
使用el-upload封装得组件怎么清空已上传附件
TDengine 连接器上线 Google Data Studio 应用商店
Viewpager pageradapter notifydatasetchanged invalid problem
从“化学家”到开发者,从甲骨文到 TDengine,我人生的两次重要抉择
How to improve the operation efficiency of intra city distribution