新聞中心
SlideDrawer.LayoutConfig

java.lang.Object
|---ohos.agp.components.ComponentContainer.LayoutConfig
|---|---ohos.agp.components.SlideDrawer.LayoutConfig
public static class SlideDrawer.LayoutConfig
extends ComponentContainer.LayoutConfig配置 SlideDrawer 的布局參數(shù),包括寬度、高度、邊距、SlideDirection 和 DisplayMode。
Since:
5
字段摘要
| 修飾符和類型 | 字段 | 描述 |
|---|---|---|
| SlideDrawer.SlideDirection | direction | 指示方向值。 |
| 從類 ohos.agp.components.ComponentContainer.LayoutConfig 繼承的字段 |
|---|
| height, MATCH_CONTENT, MATCH_PARENT, width |
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| LayoutConfig() | 用于創(chuàng)建 LayoutConfig 實例的默認構(gòu)造函數(shù),其中已為 MATCH_CONTENT 設(shè)置了默認寬度和高度。 |
| LayoutConfig(int width, int height) | 用于創(chuàng)建具有指定布局寬度和高度的 LayoutConfig 實例的構(gòu)造函數(shù)。 |
| LayoutConfig(int width, int height, SlideDrawer.SlideDirection direction) | 用于創(chuàng)建具有布局的指定寬度、高度和對齊參數(shù)的 LayoutConfig 實例的構(gòu)造函數(shù)。 |
| LayoutConfig(ComponentContainer.LayoutConfig source) | 用于使用源布局的參數(shù)(寬度、高度和邊距)創(chuàng)建 LayoutConfig 實例的構(gòu)造函數(shù)。 |
| LayoutConfig(SlideDrawer.LayoutConfig source) | 一個構(gòu)造函數(shù),用于使用源布局的參數(shù)(寬度、高度、邊距、SlideDirection 和 DisplayMode)創(chuàng)建 LayoutConfig 實例。 |
| LayoutConfig(Context context, AttrSet attrSet) | 用于根據(jù)上下文和屬性集創(chuàng)建 LayoutConfig 實例的構(gòu)造函數(shù)。 |
方法總結(jié)
| 從類 ohos.agp.components.ComponentContainer.LayoutConfig 繼承的方法 |
|---|
| clone, getHorizontalEndMargin, getHorizontalStartMargin, getLayoutDirection, getMarginBottom, getMarginLeft, getMarginRight, getMargins, getMarginsLeftAndRight, getMarginsTopAndBottom, getMarginTop, isMarginsRelative, setMarginBottom, setMarginLeft, setMarginRight, setMargins, setMarginsLeftAndRight, setMarginsRelative, setMarginsTopAndBottom, setMarginTop |
| 從類 java.lang.Object 繼承的方法 |
|---|
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段詳細信息
direction
public SlideDrawer.SlideDirection direction
指示方向值。
Since:
5
構(gòu)造函數(shù)詳細信息
LayoutConfig
public LayoutConfig()
用于創(chuàng)建 LayoutConfig 實例的默認構(gòu)造函數(shù),其中已為 MATCH_CONTENT 設(shè)置了默認寬度和高度。
Since:
5
LayoutConfig
public LayoutConfig(Context context, AttrSet attrSet)
用于根據(jù)上下文和屬性集創(chuàng)建 LayoutConfig 實例的構(gòu)造函數(shù)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| context | 指示應(yīng)用程序上下文。 |
| attrSet | 指示要使用的屬性集。 |
Since:
5
LayoutConfig
public LayoutConfig(int width, int height)
用于創(chuàng)建具有指定布局寬度和高度的 LayoutConfig 實例的構(gòu)造函數(shù)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| width | 表示寬度,可以是 ComponentContainer.LayoutConfig.MATCH_PARENT 或 ComponentContainer.LayoutConfig.MATCH_CONTENT。 |
| height | 表示高度,可以是 ComponentContainer.LayoutConfig.MATCH_PARENT 或 ComponentContainer.LayoutConfig.MATCH_CONTENT。 |
Since:
5
LayoutConfig
public LayoutConfig(int width, int height, SlideDrawer.SlideDirection direction)
用于創(chuàng)建具有布局的指定寬度、高度和對齊參數(shù)的 LayoutConfig 實例的構(gòu)造函數(shù)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| width | 表示寬度,可以是 ComponentContainer.LayoutConfig.MATCH_PARENT 或 ComponentContainer.LayoutConfig.MATCH_CONTENT。 |
| height | 表示高度,可以是 ComponentContainer.LayoutConfig.MATCH_PARENT 或 ComponentContainer.LayoutConfig.MATCH_CONTENT。 |
| direction | 指示 SlideDirection 值。 |
Since:
5
LayoutConfig
public LayoutConfig(SlideDrawer.LayoutConfig source)
一個構(gòu)造函數(shù),用于使用源布局的參數(shù)(寬度、高度、邊距、SlideDirection 和 DisplayMode)創(chuàng)建 LayoutConfig 實例。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| source | 表示源布局的參數(shù)。 |
Since:
5
LayoutConfig
public LayoutConfig(ComponentContainer.LayoutConfig source)
用于使用源布局的參數(shù)(寬度、高度和邊距)創(chuàng)建 LayoutConfig 實例的構(gòu)造函數(shù)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| source | 表示源布局的參數(shù)。 |
Since:
5
網(wǎng)頁題目:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OS SlideDrawer.LayoutConfig
網(wǎng)址分享:http://www.dlmjj.cn/article/dhhesgj.html


咨詢
建站咨詢
