共用方式為


RemoteViews.SetViewVisibility(Int32, ViewStates) Method

Definition

Equivalent to calling View#setVisibility(int)

[Android.Runtime.Register("setViewVisibility", "(II)V", "GetSetViewVisibility_IIHandler")]
public virtual void SetViewVisibility (int viewId, Android.Views.ViewStates visibility);
[<Android.Runtime.Register("setViewVisibility", "(II)V", "GetSetViewVisibility_IIHandler")>]
abstract member SetViewVisibility : int * Android.Views.ViewStates -> unit
override this.SetViewVisibility : int * Android.Views.ViewStates -> unit

Parameters

viewId
Int32

The id of the view whose visibility should change

visibility
ViewStates

The new visibility for the view

Attributes

Remarks

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

Applies to