Android Guides | Samples

Android.Widget.RemoteViews Class

A class that describes a view hierarchy that can be displayed in another process.

See Also: RemoteViews

Syntax

[Android.Runtime.Register("android/widget/RemoteViews", DoNotGenerateAcw=true)]
public class RemoteViews : Object, IParcelable, LayoutInflater+IFilter, IDisposable

Remarks

A class that describes a view hierarchy that can be displayed in another process. The hierarchy is inflated from a layout resource file, and this class provides some basic operations for modifying the content of the inflated hierarchy.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Widget.RemoteViews are listed below.

See Also: Object

Public Constructors

Reads a RemoteViews object from a parcel.
Create a new RemoteViews object that will inflate as the specified landspace or portrait RemoteViews, depending on the current configuration.
Create a new RemoteViews object that will display the views contained in the specified layout file.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
static
CreatorIParcelableCreator. Parcelable.
[read-only]
LayoutIdInt32. Reutrns the layout id of the root layout associated with this RemoteViews.
[read-only]
PackageString.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddView(Int32, RemoteViews)
Equivalent to calling ViewGroup.AddView(View) after inflating the given RemoteViews.
Apply(Context, ViewGroup) : View
Inflates the view hierarchy represented by this object and applies all of the actions.
Clone() : RemoteViews
Creates and returns a copy of this Object.
DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
OnLoadClass(Class) : Boolean
Hook to allow clients of the LayoutInflater to restrict the set of Views that are allowed to be inflated.
Reapply(Context, View)
Applies all of the actions to the provided view.
RemoveAllViews(Int32)
Equivalent to calling ViewGroup.RemoveAllViews.
SetBitmap(Int32, String, Bitmap)
Call a method taking one Bitmap on a view in the layout for this RemoteViews.
SetBoolean(Int32, String, Boolean)
Call a method taking one boolean on a view in the layout for this RemoteViews.
SetBundle(Int32, String, Bundle)
Call a method taking one Bundle on a view in the layout for this RemoteViews.
SetByte(Int32, String, SByte)
Call a method taking one byte on a view in the layout for this RemoteViews.
SetChar(Int32, String, Char)
Call a method taking one char on a view in the layout for this RemoteViews.
SetCharSequence(Int32, String, ICharSequence)
Call a method taking one CharSequence on a view in the layout for this RemoteViews.
SetCharSequence(Int32, String, String)
SetChronometer(Int32, Int64, String, Boolean)
Equivalent to calling Chronometer.Base, Chronometer.Format, and Chronometer.Start or Chronometer.Stop.
SetContentDescription(Int32, ICharSequence)
Equivalent to calling View.setContentDescription(CharSequence).
SetContentDescription(Int32, String)
SetDisplayedChild(Int32, Int32)
Equivalent to calling AdapterViewAnimator.DisplayedChild
SetDouble(Int32, String, Double)
Call a method taking one double on a view in the layout for this RemoteViews.
SetEmptyView(Int32, Int32)
Equivalent to calling AdapterView.setEmptyView
SetFloat(Int32, String, Single)
Call a method taking one float on a view in the layout for this RemoteViews.
SetImageViewBitmap(Int32, Bitmap)
Equivalent to calling ImageView.setImageBitmap
SetImageViewResource(Int32, Int32)
Equivalent to calling ImageView.setImageResource
SetImageViewUri(Int32, Uri)
Equivalent to calling ImageView.setImageURI
SetInt(Int32, String, Int32)
Call a method taking one int on a view in the layout for this RemoteViews.
SetIntent(Int32, String, Intent)
Call a method taking one Intent on a view in the layout for this RemoteViews.
SetLabelFor(Int32, Int32)
Equivalent to calling View.setLabelFor(int).
SetLong(Int32, String, Int64)
Call a method taking one long on a view in the layout for this RemoteViews.
SetOnClickFillInIntent(Int32, Intent)
When using collections (eg.
SetOnClickPendingIntent(Int32, PendingIntent)
Equivalent to calling Android.Views.View.SetOnClickListener(.IOnClickListener) to launch the provided PendingIntent.
SetPendingIntentTemplate(Int32, PendingIntent)
When using collections (eg.
SetProgressBar(Int32, Int32, Int32, Boolean)
Equivalent to calling ProgressBar.Max, ProgressBar.Progress, and ProgressBar.Indeterminate If indeterminate is true, then the values for max and progress are ignored.
SetRelativeScrollPosition(Int32, Int32)
Equivalent to calling AbsListView.SmoothScrollToPosition(Int32,Int32).
SetRemoteAdapter(Int32, Intent)
Equivalent to calling AbsListView.SetRemoteViewsAdapter(Intent).
SetRemoteAdapter(Int32, Int32, Intent)
Equivalent to calling AbsListView.SetRemoteViewsAdapter(Intent).
SetScrollPosition(Int32, Int32)
Equivalent to calling AbsListView.SmoothScrollToPosition(Int32,Int32).
SetShort(Int32, String, Int16)
Call a method taking one short on a view in the layout for this RemoteViews.
SetString(Int32, String, String)
Call a method taking one String on a view in the layout for this RemoteViews.
SetTextColor(Int32, Color)
Equivalent to calling TextView.SetTextColor(Color).
SetTextViewCompoundDrawables(Int32, Int32, Int32, Int32, Int32)
Equivalent to calling TextView.SetCompoundDrawablesWithIntrinsicBounds(Int32,Int32,Int32,Int32).
SetTextViewCompoundDrawablesRelative(Int32, Int32, Int32, Int32, Int32)
Equivalent to calling TextView.SetCompoundDrawablesRelativeWithIntrinsicBounds(Int32,Int32,Int32,Int32).
SetTextViewText(Int32, ICharSequence)
Equivalent to calling TextView.setText
SetTextViewText(Int32, String)
SetTextViewTextSize(Int32, Int32, Single)
Equivalent to calling TextView.SetTextSize(ComplexUnitType,Single)
SetUri(Int32, String, Uri)
Call a method taking one Uri on a view in the layout for this RemoteViews.
SetViewPadding(Int32, Int32, Int32, Int32, Int32)
Equivalent to calling View.SetPadding(Int32,Int32,Int32,Int32).
SetViewVisibility(Int32, ViewStates)
Equivalent to calling View.setVisibility
ShowNext(Int32)
Equivalent to calling AdapterViewAnimator.ShowNext
ShowPrevious(Int32)
Equivalent to calling AdapterViewAnimator.ShowPrevious
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.