新聞中心
TextAlignment

創(chuàng)新互聯(lián)是一家業(yè)務(wù)范圍包括IDC托管業(yè)務(wù),網(wǎng)絡(luò)空間、主機(jī)租用、主機(jī)托管,四川、重慶、廣東電信服務(wù)器租用,鄭州服務(wù)器托管,成都網(wǎng)通服務(wù)器托管,成都服務(wù)器租用,業(yè)務(wù)范圍遍及中國(guó)大陸、港澳臺(tái)以及歐美等多個(gè)國(guó)家及地區(qū)的互聯(lián)網(wǎng)數(shù)據(jù)服務(wù)公司。
java.lang.Object
|---ohos.agp.utils.TextAlignment
public class TextAlignment
extends Object設(shè)置文本組件使用的對(duì)齊模式以與其父組件對(duì)齊。
此類設(shè)置文本組件如何在按鈕和布局等容器中對(duì)齊。 對(duì)齊方式包括左對(duì)齊、右對(duì)齊、水平居中對(duì)齊、垂直居中對(duì)齊、居中對(duì)齊、頂部對(duì)齊、底部對(duì)齊、開始對(duì)齊和結(jié)束對(duì)齊。
Since:
1
字段摘要
| 修飾符和類型 | 字段 | 描述 |
|---|---|---|
| static int | BOTTOM | 表示底部對(duì)齊。 |
| static int | CENTER | 表示中心對(duì)齊。 |
| static int | END | 表示文本與容器的末端對(duì)齊。 |
| static int | HORIZONTAL_CENTER | 表示水平居中對(duì)齊。 |
| static int | LEFT | 表示左對(duì)齊。 |
| static int | RIGHT | 表示右對(duì)齊。 |
| static int | START | 表示文本與容器的開頭對(duì)齊。 |
| static int | TOP | 表示頂部對(duì)齊。 |
| static int | VERTICAL_CENTER | 表示垂直居中對(duì)齊。 |
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| TextAlignment() |
方法總結(jié)
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段詳細(xì)信息
BOTTOM
public static final int BOTTOM
表示底部對(duì)齊。
此常量表示文本與容器的底部邊緣對(duì)齊。
CENTER
public static final int CENTER
表示中心對(duì)齊。
此常量表示文本與容器的中心對(duì)齊。
END
public static final int END
表示文本與容器的末端對(duì)齊。
Since:
3
HORIZONTAL_CENTER
public static final int HORIZONTAL_CENTER
表示水平居中對(duì)齊。
此常量表示文本在容器中水平居中。
LEFT
public static final int LEFT
表示左對(duì)齊。
此常量指示文本與容器的左邊緣對(duì)齊。
RIGHT
public static final int RIGHT
表示右對(duì)齊。
此常量表示文本與容器的右邊緣對(duì)齊。
START
public static final int START
表示文本與容器的開頭對(duì)齊。
Since:
3
TOP
public static final int TOP
表示頂部對(duì)齊。
此常量指示文本與容器的頂部邊緣對(duì)齊。
VERTICAL_CENTER
public static final int VERTICAL_CENTER
表示垂直居中對(duì)齊。
此常量表示文本在容器中垂直居中。
構(gòu)造函數(shù)詳細(xì)信息
TextAlignment
public TextAlignment()
分享名稱:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSTextAlignment
當(dāng)前鏈接:http://m.fisionsoft.com.cn/article/cdjocih.html


咨詢
建站咨詢
