LayerDrawable.AddLayer(Drawable) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.