TouchController 中的锚点机制
锚点机制旨在适配不同大小的屏幕,使得控件布局在任何设备上都可用。
锚点机制
- 锚点共有 9 种,分别为屏幕四角、屏幕四边的中心、屏幕中心。
- 无论画面边框如何变化,控件相对其锚点的位置始终不变。
自动锚点
Warning
自动锚点功能正在开发中!#318
- 自动锚点通常是默认开启的。
- 开启自动锚点的控件能够根据自身与锚点的距离自动切换锚点。
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
锚点机制旨在适配不同大小的屏幕,使得控件布局在任何设备上都可用。
Warning
自动锚点功能正在开发中!#318