- Mastering Android Development with Kotlin
- Milo? Vasi?
- 65字
- 2021-07-02 15:20:58
Checking out the gravity attribute
View Gravity:
- gravity (direction of the content inside the view): This accepts the following--top, left, right, start, end, center, center_horizontal, center_vertical, and many other
- layout_gravity (direction of the content inside the view parent): This accepts the following--top, left, right, left, start, end, center, center_horizontal, center_vertical, and many others
It's possible to combine values for gravity as follows:
android:gravity="top|center_horizontal"
推薦閱讀
- Learning Neo4j 3.x(Second Edition)
- JavaScript:Moving to ES2015
- WebRTC技術(shù)詳解:從0到1構(gòu)建多人視頻會(huì)議系統(tǒng)
- Getting Started with NativeScript
- Python忍者秘籍
- SQL經(jīng)典實(shí)例(第2版)
- PHP 7+MySQL 8動(dòng)態(tài)網(wǎng)站開發(fā)從入門到精通(視頻教學(xué)版)
- Python Data Analysis Cookbook
- .NET Standard 2.0 Cookbook
- 愛上C語(yǔ)言:C KISS
- Julia High Performance(Second Edition)
- Robot Framework Test Automation
- Java程序設(shè)計(jì)教程
- TensorFlow.NET實(shí)戰(zhàn)
- Learning SaltStack(Second Edition)