当前位置:网站首页>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
边栏推荐
- Windows uses commands to run kotlin
- [Yugong series] go teaching course 003-ide installation and basic use in July 2022
- 百度APP 基于Pipeline as Code的持续集成实践
- Officially launched! Tdengine plug-in enters the official website of grafana
- 【对象数组的排序】
- Fluent development: setting method of left and right alignment of child controls in row
- 7 月 2 日邀你来TD Hero 线上发布会
- Cross process communication Aidl
- 观测云与 TDengine 达成深度合作,优化企业上云体验
- Thermometer based on STM32 single chip microcomputer (with face detection)
猜你喜欢
小程序启动性能优化实践
Deep understanding of C language pointer
Why does everyone want to do e-commerce? How much do you know about the advantages of online shopping malls?
How to use sqlcipher tool to decrypt encrypted database under Windows system
观测云与 TDengine 达成深度合作,优化企业上云体验
How do enterprises choose the appropriate three-level distribution system?
解决idea调试过程中liquibase – Waiting for changelog lock….导致数据库死锁问题
代码语言的魅力
写入速度提升数十倍,TDengine 在拓斯达智能工厂解决方案上的应用
La voie de l'évolution du système intelligent d'inspection et d'ordonnancement des petites procédures de Baidu
随机推荐
Principle and performance analysis of lepton lossless compression
[sorting of object array]
Three-level distribution is becoming more and more popular. How should businesses choose the appropriate three-level distribution system?
SMT32H7系列DMA和DMAMUX的一点理解
SQL learning group by multi table grouping scenario
[team PK competition] the task of this week has been opened | question answering challenge to consolidate the knowledge of commodity details
Data visualization platform based on template configuration
How to implement complex SQL such as distributed database sub query and join?
What are the advantages of the live teaching system to improve learning quickly?
STM32 simple multi-level menu (array table lookup method)
First understanding of structure
TDengine × Intel edge insight software package accelerates the digital transformation of traditional industries
Understand the window query function of tdengine in one article
Unity skframework framework (XXIII), minimap small map tool
Flutter development: use safearea
A keepalived high availability accident made me learn it again
Online chain offline integrated chain store e-commerce solution
[technical live broadcast] how to rewrite tdengine code from 0 to 1 with vscode
[200 opencv routines] 219 Add digital watermark (blind watermark)
Windows uses commands to run kotlin