Java android.widget RemoteViews fields, constructors, methods, implement or subclass

Example usage for Java android.widget RemoteViews fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget RemoteViews.

The text is from its open source code.

Field

Parcelable.CreatorCREATOR
Parcelable.Creator that instantiates RemoteViews objects

Constructor

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.

Method

voidaddView(int viewId, RemoteViews nestedView)
Equivalent to calling ViewGroup#addView(View) after inflating the given RemoteViews .
Viewapply(Context context, ViewGroup parent)
Inflates the view hierarchy represented by this object and applies all of the actions.
ClassgetClass()
Returns the runtime class of this Object .
intgetLayoutId()
Returns the layout id of the root layout associated with this RemoteViews.
StringgetPackage()
voidreapply(Context context, View v)
Applies all of the actions to the provided view.
voidremoveAllViews(int viewId)
Equivalent to calling ViewGroup#removeAllViews() .
voidsetBitmap(int viewId, String methodName, Bitmap value)
Call a method taking one Bitmap on a view in the layout for this RemoteViews.
voidsetBoolean(int viewId, String methodName, boolean value)
Call a method taking one boolean on a view in the layout for this RemoteViews.
voidsetCharSequence(int viewId, String methodName, CharSequence value)
Call a method taking one CharSequence on a view in the layout for this RemoteViews.
voidsetChronometer(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() .
voidsetChronometerCountDown(int viewId, boolean isCountDown)
Equivalent to calling Chronometer#setCountDown(boolean) Chronometer.setCountDown on the chronometer with the given viewId.
voidsetContentDescription(int viewId, CharSequence contentDescription)
Equivalent to calling View.setContentDescription(CharSequence).
voidsetEmptyView(int viewId, int emptyViewId)
Equivalent to calling AdapterView#setEmptyView(View)
voidsetFloat(int viewId, String methodName, float value)
Call a method taking one float on a view in the layout for this RemoteViews.
voidsetImageViewBitmap(int viewId, Bitmap bitmap)
Equivalent to calling ImageView#setImageBitmap(Bitmap)
voidsetImageViewResource(int viewId, int srcId)
Equivalent to calling ImageView#setImageResource(int)
voidsetImageViewUri(int viewId, Uri uri)
Equivalent to calling ImageView#setImageURI(Uri)
voidsetInt(int viewId, String methodName, int value)
Call a method taking one int on a view in the layout for this RemoteViews.
voidsetLong(int viewId, String methodName, long value)
Call a method taking one long on a view in the layout for this RemoteViews.
voidsetOnClickFillInIntent(int viewId, Intent fillInIntent)
When using collections (eg.
voidsetOnClickPendingIntent(int viewId, PendingIntent pendingIntent)
Equivalent to calling android.view.View#setOnClickListener(android.view.View.OnClickListener) to launch the provided PendingIntent .
voidsetPendingIntentTemplate(int viewId, PendingIntent pendingIntentTemplate)
When using collections (eg.
voidsetProgressBar(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.
voidsetRemoteAdapter(int appWidgetId, int viewId, Intent intent)
Equivalent to calling android.widget.AbsListView#setRemoteViewsAdapter(Intent) .
voidsetRemoteAdapter(int viewId, ArrayList list, int viewTypeCount)
Creates a simple Adapter for the viewId specified.
voidsetRemoteAdapter(int viewId, Intent intent)
Equivalent to calling android.widget.AbsListView#setRemoteViewsAdapter(Intent) .
voidsetScrollPosition(int viewId, int position)
Equivalent to calling ListView#smoothScrollToPosition(int) .
voidsetTextColor(int viewId, @ColorInt int color)
Equivalent to calling android.widget.TextView#setTextColor(int) .
voidsetTextColor(int viewId, @ColorInt ColorStateList colors)
voidsetTextViewCompoundDrawablesRelative(int viewId, int start, int top, int end, int bottom)
Equivalent to calling TextView#setCompoundDrawablesRelativeWithIntrinsicBounds(int,int,int,int) .
voidsetTextViewCompoundDrawablesRelative(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) .
voidsetTextViewText(int viewId, CharSequence text)
Equivalent to calling TextView#setText(CharSequence)
voidsetTextViewTextSize(int viewId, int units, float size)
Equivalent to calling TextView#setTextSize(int,float)
voidsetViewPadding(int viewId, int left, int top, int right, int bottom)
Equivalent to calling android.view.View#setPadding(int,int,int,int) .
voidsetViewVisibility(int viewId, int visibility)
Equivalent to calling View#setVisibility(int)