LayerDrawable.SetDrawableByLayerId(Int32, Drawable) Metodo

Definizione

Sostituisce per Drawable il livello con l'ID specificato.

[Android.Runtime.Register("setDrawableByLayerId", "(ILandroid/graphics/drawable/Drawable;)Z", "GetSetDrawableByLayerId_ILandroid_graphics_drawable_Drawable_Handler")]
public virtual bool SetDrawableByLayerId(int id, Android.Graphics.Drawables.Drawable? drawable);
[<Android.Runtime.Register("setDrawableByLayerId", "(ILandroid/graphics/drawable/Drawable;)Z", "GetSetDrawableByLayerId_ILandroid_graphics_drawable_Drawable_Handler")>]
abstract member SetDrawableByLayerId : int * Android.Graphics.Drawables.Drawable -> bool
override this.SetDrawableByLayerId : int * Android.Graphics.Drawables.Drawable -> bool

Parametri

id
Int32

ID livello da cercare.

drawable
Drawable

DrawableSostituzione di .

Valori restituiti

Indica se è Drawable stato sostituito (può restituire false se l'ID non è stato trovato).

Attributi

Commenti

Sostituisce per Drawable il livello con l'ID specificato.

per android.graphics.drawable.LayerDrawable.setDrawableByLayerId(int, android.graphics.drawable.Drawable).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a