言語

Window.SetBackgroundDrawableResource(Int32) メソッド

定義

このウィンドウの背景を Drawable リソースに変更します。

[Android.Runtime.Register("setBackgroundDrawableResource", "(I)V", "GetSetBackgroundDrawableResource_IHandler")]
public virtual void SetBackgroundDrawableResource(int resId);
[<Android.Runtime.Register("setBackgroundDrawableResource", "(I)V", "GetSetBackgroundDrawableResource_IHandler")>]
abstract member SetBackgroundDrawableResource : int -> unit
override this.SetBackgroundDrawableResource : int -> unit

パラメーター

resId
Int32

新しい背景としてインストールされる描画可能なリソースのリソース識別子。

属性

注釈

このウィンドウの背景を Drawable リソースに変更します。 背景を null に設定すると、ウィンドウは不透明になります。 ウィンドウを透明にするには、空の描画可能オブジェクトを使用できます (たとえば、色 0 の ColorDrawable またはシステム描画可能な android:drawable/empty)。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象