ViewGroup.RemoveViewsInLayout(Int32, Int32) 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.
Removes a range of views during layout.
[Android.Runtime.Register("removeViewsInLayout", "(II)V", "GetRemoveViewsInLayout_IIHandler")]
public virtual void RemoveViewsInLayout (int start, int count);
[<Android.Runtime.Register("removeViewsInLayout", "(II)V", "GetRemoveViewsInLayout_IIHandler")>]
abstract member RemoveViewsInLayout : int * int -> unit
override this.RemoveViewsInLayout : int * int -> unit
Parameters
- start
- Int32
the index of the first view to remove from the group
- count
- Int32
the number of views to remove from the group
- Attributes
Remarks
Removes a range of views during layout. This is useful if in your onLayout() method, you need to remove more views.
<strong>Note:</strong> do not invoke this method from #draw(android.graphics.Canvas)
, #onDraw(android.graphics.Canvas)
, #dispatchDraw(android.graphics.Canvas)
or any related method.
Java documentation for android.view.ViewGroup.removeViewsInLayout(int, int)
.
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.