当前位置:网站首页>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
边栏推荐
- Lepton 无损压缩原理及性能分析
- 基于宽表的数据建模应用
- Small program startup performance optimization practice
- Solve the problem of no all pattern found during Navicat activation and registration
- Unity SKFramework框架(二十二)、Runtime Console 运行时调试工具
- [Yugong series] go teaching course 003-ide installation and basic use in July 2022
- 【js 根据对象数组中的属性进行排序】
- 百度智能小程序巡檢調度方案演進之路
- MySQL does not take effect in sorting string types
- cent7安装Oracle数据库报错
猜你喜欢
Data visualization platform based on template configuration
卷起来,突破35岁焦虑,动画演示CPU记录函数调用过程
Three-level distribution is becoming more and more popular. How should businesses choose the appropriate three-level distribution system?
MySQL installation configuration and creation of databases and tables
H. 265 introduction to coding principles
百度APP 基于Pipeline as Code的持续集成实践
How to empty uploaded attachments with components encapsulated by El upload
cent7安装Oracle数据库报错
Lepton 无损压缩原理及性能分析
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
随机推荐
让AI替企业做复杂决策真的靠谱吗?参与直播,斯坦福博士来分享他的选择|量子位·视点...
Unity skframework framework (24), avatar controller third person control
Tdengine connector goes online Google Data Studio app store
TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries
Community group buying exploded overnight. How should this new model of e-commerce operate?
[JS sort according to the attributes in the object array]
如何正确的评测视频画质
Apache DolphinScheduler 入门(一篇就够了)
La voie de l'évolution du système intelligent d'inspection et d'ordonnancement des petites procédures de Baidu
【js 根据对象数组中的属性进行排序】
Small program startup performance optimization practice
代码语言的魅力
What about wechat mall? 5 tips to clear your mind
一文读懂TDengine的窗口查询功能
Understand the window query function of tdengine in one article
Resolve the horizontal (vertical) sliding conflict between viewpager and WebView
Optimize database queries using the cursor object of SQLite
TDengine ×英特尔边缘洞见软件包 加速传统行业的数字化转型
揭秘百度智能测试在测试自动执行领域实践
从“化学家”到开发者,从甲骨文到TDengine,我人生的两次重要抉择