共用方式為


RemoteViews.RemoveAllViews(Int32) Method

Definition

Equivalent to calling ViewGroup#removeAllViews().

[Android.Runtime.Register("removeAllViews", "(I)V", "GetRemoveAllViews_IHandler")]
public virtual void RemoveAllViews (int viewId);
[<Android.Runtime.Register("removeAllViews", "(I)V", "GetRemoveAllViews_IHandler")>]
abstract member RemoveAllViews : int -> unit
override this.RemoveAllViews : int -> unit

Parameters

viewId
Int32

The id of the parent ViewGroup to remove all children from.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.removeAllViews(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.

Applies to