RemoteViews

Class of android.widget · RemoteViews.java · Android's reference

public class RemoteViews implements Parcelable, LayoutInflater.Filter, Cloneable

A layout and a list of actions on its views, which apply() runs on a view that it inflates. A parcel holds the package and the layout only: the actions do not cross a parcel, as no other process reads them here.

Nested types

Fields

public static final Parcelable.Creator<RemoteViews> CREATOR source

Constructors

public RemoteViews(String packageName, int layoutId) source
public RemoteViews(RemoteViews src) source
public RemoteViews(Parcel parcel) source

Methods

public void setRemoteAdapter(int viewId, android.content.Intent intent) empty body source
public void setRemoteAdapter(int appWidgetId, int viewId, android.content.Intent intent) empty body deprecated source
public void setRemoteAdapter(int viewId, RemoteCollectionItems items) empty body source
public void setEmptyView(int viewId, int emptyViewId) empty body source
public void setPendingIntentTemplate(int viewId, android.app.PendingIntent pendingIntentTemplate) empty body source
public void setOnClickFillInIntent(int viewId, android.content.Intent fillInIntent) empty body source
public String getPackage() source
public int getLayoutId() source
public RemoteViews clone() deprecated source
public void addView(int viewId, RemoteViews nestedView) source
public void removeAllViews(int viewId) source
public void setViewVisibility(int viewId, int visibility) source
public void setViewPadding(int viewId, int left, int top, int right, int bottom) source
public void setContentDescription(int viewId, CharSequence contentDescription) source
public void setTextViewText(int viewId, CharSequence text) source
public void setTextViewTextSize(int viewId, int units, float size) source
public void setTextColor(int viewId, int color) source
public void setImageViewResource(int viewId, int srcId) source
public void setImageViewBitmap(int viewId, Bitmap bitmap) source
public void setImageViewUri(int viewId, android.net.Uri uri) source
public void setOnClickPendingIntent(int viewId, PendingIntent pendingIntent) source
public void setChronometerCountDown(int viewId, boolean isCountDown) source
public void setBoolean(int viewId, String methodName, boolean value) source
public void setInt(int viewId, String methodName, int value) source
public void setLong(int viewId, String methodName, long value) source
public void setFloat(int viewId, String methodName, float value) source
public void setString(int viewId, String methodName, String value) source
public void setCharSequence(int viewId, String methodName, CharSequence value) source
public View apply(Context context, ViewGroup parent) source

Inflates the layout in the parent and runs the actions on it, in their order.

public void reapply(Context context, View v) source
public boolean onLoadClass(Class clazz) source
public int describeContents() source
public void writeToParcel(Parcel dest, int flags) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.