日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

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

新聞中心

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

DisplayAttributes

創(chuàng)新互聯(lián)公司是一家專注網(wǎng)站建設(shè)、網(wǎng)絡(luò)營(yíng)銷策劃、成都小程序開(kāi)發(fā)、電子商務(wù)建設(shè)、網(wǎng)絡(luò)推廣、移動(dòng)互聯(lián)開(kāi)發(fā)、研究、服務(wù)為一體的技術(shù)型公司。公司成立十年以來(lái),已經(jīng)為千余家格柵板各業(yè)的企業(yè)公司提供互聯(lián)網(wǎng)服務(wù)?,F(xiàn)在,服務(wù)的千余家客戶與我們一路同行,見(jiàn)證我們的成長(zhǎng);未來(lái),我們一起分享成功的喜悅。

java.lang.Object

|---ohos.agp.window.service.DisplayAttributes

public class DisplayAttributes
extends Object

以像素為單位封裝顯示屬性,包括顯示寬度、高度和密度。

Since:

3

字段摘要

修飾符和類型字段描述
intdensityDpi表示顯示分辨率。
floatdensityPixels以像素為單位表示顯示密度。
intheight表示顯示的實(shí)際高度,以像素為單位。
static intHIGH_DENSITY表示高分辨率顯示的密度,值為 240。
static intLOW_DENSITY表示低分辨率顯示的密度,值為 120。
static intMEDIUM_DENSITY表示中分辨率顯示的密度,值為 160。
floatscalDensity指示顯示的文本比例密度。
intwidth表示顯示的實(shí)際寬度,以像素為單位。
floatxDpi表示 X 軸上的每英寸點(diǎn)數(shù) (DPI)。
floatyDpi表示 Y 軸上的 DPI。

構(gòu)造函數(shù)摘要

構(gòu)造函數(shù)描述
DisplayAttributes()用于創(chuàng)建 DisplayAttributes 實(shí)例的默認(rèn)構(gòu)造函數(shù)。

方法總結(jié)

從類 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

字段詳細(xì)信息

HIGH_DENSITY

public static final int HIGH_DENSITY

表示高分辨率顯示的密度,值為 240。

LOW_DENSITY

public static final int LOW_DENSITY

表示低分辨率顯示的密度,值為 120。

MEDIUM_DENSITY

public static final int MEDIUM_DENSITY

表示中分辨率顯示的密度,值為 160。

densityDpi

public int densityDpi

表示顯示分辨率。

densityPixels

public float densityPixels

以像素為單位表示顯示密度。 低分辨率顯示器的值為 1.0。

height

public int height

表示顯示的實(shí)際高度,以像素為單位。

scalDensity

public float scalDensity

指示顯示的文本比例密度。

width

public int width

表示顯示的實(shí)際寬度,以像素為單位。

xDpi

public float xDpi

表示 X 軸上的每英寸點(diǎn)數(shù) (DPI)。

yDpi

public float yDpi

表示 Y 軸上的 DPI。

構(gòu)造函數(shù)詳細(xì)信息

DisplayAttributes

public DisplayAttributes()

用于創(chuàng)建 DisplayAttributes 實(shí)例的默認(rèn)構(gòu)造函數(shù)。


當(dāng)前題目:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OS DisplayAttributes
網(wǎng)站地址:http://m.5511xx.com/article/dhdddcs.html