日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OS SlideDrawer.LayoutConfig

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.SlideDirectiondirection指示方向值。
從類 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