Megosztás a következőn keresztül:


LayerDrawable.AddLayer(Drawable) Method

Definition

Adds a new layer containing the specified drawable to the end of the layer list and returns its index.

[Android.Runtime.Register("addLayer", "(Landroid/graphics/drawable/Drawable;)I", "GetAddLayer_Landroid_graphics_drawable_Drawable_Handler", ApiSince=23)]
public virtual int AddLayer (Android.Graphics.Drawables.Drawable? dr);
[<Android.Runtime.Register("addLayer", "(Landroid/graphics/drawable/Drawable;)I", "GetAddLayer_Landroid_graphics_drawable_Drawable_Handler", ApiSince=23)>]
abstract member AddLayer : Android.Graphics.Drawables.Drawable -> int
override this.AddLayer : Android.Graphics.Drawables.Drawable -> int

Parameters

dr
Drawable

The drawable to add as a new layer.

Returns

The index of the new layer.

Attributes

Remarks

Adds a new layer containing the specified drawable to the end of the layer list and returns its index.

Java documentation for android.graphics.drawable.LayerDrawable.addLayer(android.graphics.drawable.Drawable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to