Example usage for Java android.widget RemoteViews fields, constructors, methods, implement or subclass
The text is from its open source code.
Parcelable.Creator | CREATOR Parcelable.Creator that instantiates RemoteViews objects |
RemoteViews(String packageName, int layoutId) Create a new RemoteViews object that will display the views contained in the specified layout file. | |
RemoteViews(ApplicationInfo application, int layoutId) Create a new RemoteViews object that will display the views contained in the specified layout file. | |
RemoteViews(RemoteViews landscape, RemoteViews portrait) Create a new RemoteViews object that will inflate as the specified landspace or portrait RemoteViews, depending on the current configuration. |
void | addView(int viewId, RemoteViews nestedView) Equivalent to calling ViewGroup#addView(View) after inflating the given RemoteViews . |
View | apply(Context context, ViewGroup parent) Inflates the view hierarchy represented by this object and applies all of the actions. |
Class> | getClass() Returns the runtime class of this Object . |
int | getLayoutId() Returns the layout id of the root layout associated with this RemoteViews. |
String | getPackage() |
void | reapply(Context context, View v) Applies all of the actions to the provided view. |
void | removeAllViews(int viewId) Equivalent to calling ViewGroup#removeAllViews() . |
void | setBitmap(int viewId, String methodName, Bitmap value) Call a method taking one Bitmap on a view in the layout for this RemoteViews. |
void | setBoolean(int viewId, String methodName, boolean value) Call a method taking one boolean on a view in the layout for this RemoteViews. |
void | setCharSequence(int viewId, String methodName, CharSequence value) Call a method taking one CharSequence on a view in the layout for this RemoteViews. |
void | setChronometer(int viewId, long base, String format, boolean started) Equivalent to calling Chronometer#setBase Chronometer.setBase , Chronometer#setFormat Chronometer.setFormat , and Chronometer#start Chronometer.start() or Chronometer#stop Chronometer.stop() . |
void | setChronometerCountDown(int viewId, boolean isCountDown) Equivalent to calling Chronometer#setCountDown(boolean) Chronometer.setCountDown on the chronometer with the given viewId. |
void | setContentDescription(int viewId, CharSequence contentDescription) Equivalent to calling View.setContentDescription(CharSequence). |
void | setEmptyView(int viewId, int emptyViewId) Equivalent to calling AdapterView#setEmptyView(View) |
void | setFloat(int viewId, String methodName, float value) Call a method taking one float on a view in the layout for this RemoteViews. |
void | setImageViewBitmap(int viewId, Bitmap bitmap) Equivalent to calling ImageView#setImageBitmap(Bitmap) |
void | setImageViewResource(int viewId, int srcId) Equivalent to calling ImageView#setImageResource(int) |
void | setImageViewUri(int viewId, Uri uri) Equivalent to calling ImageView#setImageURI(Uri) |
void | setInt(int viewId, String methodName, int value) Call a method taking one int on a view in the layout for this RemoteViews. |
void | setLong(int viewId, String methodName, long value) Call a method taking one long on a view in the layout for this RemoteViews. |
void | setOnClickFillInIntent(int viewId, Intent fillInIntent) When using collections (eg. |
void | setOnClickPendingIntent(int viewId, PendingIntent pendingIntent) Equivalent to calling android.view.View#setOnClickListener(android.view.View.OnClickListener) to launch the provided PendingIntent . |
void | setPendingIntentTemplate(int viewId, PendingIntent pendingIntentTemplate) When using collections (eg. |
void | setProgressBar(int viewId, int max, int progress, boolean indeterminate) Equivalent to calling ProgressBar#setMax ProgressBar.setMax , ProgressBar#setProgress ProgressBar.setProgress , and ProgressBar#setIndeterminate ProgressBar.setIndeterminate If indeterminate is true, then the values for max and progress are ignored. |
void | setRemoteAdapter(int appWidgetId, int viewId, Intent intent) Equivalent to calling android.widget.AbsListView#setRemoteViewsAdapter(Intent) . |
void | setRemoteAdapter(int viewId, ArrayList Creates a simple Adapter for the viewId specified. |
void | setRemoteAdapter(int viewId, Intent intent) Equivalent to calling android.widget.AbsListView#setRemoteViewsAdapter(Intent) . |
void | setScrollPosition(int viewId, int position) Equivalent to calling ListView#smoothScrollToPosition(int) . |
void | setTextColor(int viewId, @ColorInt int color) Equivalent to calling android.widget.TextView#setTextColor(int) . |
void | setTextColor(int viewId, @ColorInt ColorStateList colors) |
void | setTextViewCompoundDrawablesRelative(int viewId, int start, int top, int end, int bottom) Equivalent to calling TextView#setCompoundDrawablesRelativeWithIntrinsicBounds(int,int,int,int) . |
void | setTextViewCompoundDrawablesRelative(int viewId, Icon start, Icon top, Icon end, Icon bottom) Equivalent to calling TextView#setCompoundDrawablesRelativeWithIntrinsicBounds(Drawable,Drawable,Drawable,Drawable) using the drawables yielded by Icon#loadDrawable(Context) . |
void | setTextViewText(int viewId, CharSequence text) Equivalent to calling TextView#setText(CharSequence) |
void | setTextViewTextSize(int viewId, int units, float size) Equivalent to calling TextView#setTextSize(int,float) |
void | setViewPadding(int viewId, int left, int top, int right, int bottom) Equivalent to calling android.view.View#setPadding(int,int,int,int) . |
void | setViewVisibility(int viewId, int visibility) Equivalent to calling View#setVisibility(int) |