語言

Notification.BubbleMetadata.Builder.SetDesiredHeight(Int32) 方法

定義

設定膨脹氣泡內容所需的高度(DPs)。

[Android.Runtime.Register("setDesiredHeight", "(I)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)]
public Android.App.Notification.BubbleMetadata.Builder SetDesiredHeight(int height);
[<Android.Runtime.Register("setDesiredHeight", "(I)Landroid/app/Notification$BubbleMetadata$Builder;", "", ApiSince=29)>]
member this.SetDesiredHeight : int -> Android.App.Notification.BubbleMetadata.Builder

參數

height
Int32

int

傳回

這個 Android.App.Notification.BubbleMetadata.Builder 實例,允許通話串接。

屬性

備註

設定膨脹氣泡內容所需的高度(DPs)。 若螢幕空間不足或提供的高度過小無法使用,則可能無法遵守此高度。

如果此建構器先前曾呼叫 setDesiredHeightResId(int),呼叫此方法後,先前的值集會被清除,改用這個值。

期望的高度(以 DP 或透過 resID 可選)。

另請參閱:

Android 參考資料。android.app.Notification.BubbleMetadata.Builder.setDesiredHeight

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

適用於