語言

GetWalletCardsRequest.CardWidthPx 屬性

定義

所需的寬度 WalletCard#getCardImage(),以像素為單位。

public int CardWidthPx { [Android.Runtime.Register("getCardWidthPx", "()I", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getCardWidthPx", "()I", "", ApiSince=30)>]
member this.CardWidthPx : int

屬性值

屬性

備註

所需的寬度 WalletCard#getCardImage(),以像素為單位。 卡片影像的尺寸會被請求,以便渲染時不會縮放。

cardWidthPx應將 和 cardHeightPx 應用於 的大小WalletCard#getCardImage()。 卡片影像的尺寸被指定,以便能夠準確呈現,且不會因縮放而產生的失真。

Java 文件 android.service.quickaccesswallet.GetWalletCardsRequest.getCardWidthPx()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於