Best code examples for Android RemoteViews class (android.widget.RemoteViews)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android RemoteViews class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android RemoteViews examples from Open Source projects
This code example shows how to use the following methods:
94:	n.contentView = new RemoteViews(context.getApplicationContext().getPackageName(), layout); 
-
96:	notificationStyles.getTitleAppearance().setOn(n.contentView, viewIds.title); 
-
98:	textAppearance.setOn(n.contentView, viewIds.text); 
99:	textAppearance.setOn(n.contentView, viewIds.info); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setTextViewText
128:	remoteViews.setTextViewText(viewId, text); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setOnClickPendingIntent
79:	remoteView.setOnClickPendingIntent(viewId, PendingIntent.getBroadcast(context, 0, active, PendingIntent.FLAG_UPDATE_CURRENT)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setImageViewResource, setOnClickPendingIntent, setViewVisibility
105:	views.setViewVisibility(buttonLayout, View.VISIBLE); 
-
107:	views.setViewVisibility(buttonSep, View.VISIBLE); 
-
112:	views.setOnClickPendingIntent(buttonLayout, 
-
117:	views.setImageViewResource(buttonIcon, currentIcon); 
-
120:	views.setImageViewResource(buttonState, getButtonState(widgetPreferences)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: apply
111:	View pluginView=rv.apply(RemoteViewsHostActivity.this, frame); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEmptyView, setOnClickPendingIntent, setRemoteAdapter, setTextViewText, setViewVisibility
43:	localRemoteViews.setEmptyView(2131231184, 2131231185); 
-
47:	localRemoteViews.setRemoteAdapter(2131231184, localIntent); 
-
50:	localRemoteViews.setTextViewText(2131231125, paramString.toUpperCase()); 
51:	localRemoteViews.setOnClickPendingIntent(2131230744, PendingIntent.getActivity(paramContext, 0, IntentUtils.createBrowseIntent(paramContext, DfeApiImpl.getRecommendationsBrowseUrl(paramInt2), paramString, paramInt2, "widget", true), 0)); 
52:	localRemoteViews.setViewVisibility(2131230744, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setImageViewBitmap
58:	_contentView.setImageViewBitmap(_customLayoutImageContainer, _bitmap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setImageViewResource, setOnClickPendingIntent, setViewVisibility
105:	views.setViewVisibility(buttonLayout, View.VISIBLE); 
-
107:	views.setViewVisibility(buttonSep, View.VISIBLE); 
-
112:	views.setOnClickPendingIntent(buttonLayout, 
-
117:	views.setImageViewResource(buttonIcon, currentIcon); 
-
120:	views.setImageViewResource(buttonState, getButtonState(widgetPreferences)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setOnClickPendingIntent, setTextViewText
132:	mRemoteViews.setTextViewText(mRAlertMessage, message); 
-
156:	RemoteViews rv = new RemoteViews(getPackageName(), layout); 
-
162:	rv.setOnClickPendingIntent(mRWidget, pendingIntent); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateAppWidget, setOnClickPendingIntent, setTextViewText
59:	RemoteViews updateViews = new RemoteViews(this.getPackageName(), getLayoutID()); 
60:	updateViews.setTextViewText(getButtonID(), getNetInfoText(this)); 
-
65:	updateViews.setOnClickPendingIntent(getButtonID(), pendingIntent); 
66:	AppWidgetManager.getInstance(this).updateAppWidget(getComponentName(), 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setOnClickPendingIntent
186:	views.setOnClickPendingIntent(viewId, pendingIntent); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
92:	RemoteViews updateViews = new RemoteViews(context.getPackageName(), getLayoutId()); 
93:	fillRemoteViewsLoading(updateViews, context); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateAppWidget, setOnClickPendingIntent, setTextViewText
38:	RemoteViews localRemoteViews = new RemoteViews(paramContext.getPackageName(), i); 
39:	localRemoteViews.setTextViewText(2131296296, "--------"); 
-
43:	localRemoteViews.setOnClickPendingIntent(2131296317, PendingIntent.getActivity(paramContext, 0, new Intent(paramContext, SplashActivity.class), 0)); 
44:	AppWidgetManager.getInstance(paramContext).updateAppWidget(paramInt, localRemoteViews); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setImageViewBitmap, setTextViewText
121:	RemoteViews remoteviews = new RemoteViews(mContext.getPackageName(), 0x7f030066); 
122:	remoteviews.setImageViewBitmap(0x7f0e002d, bitmap); 
123:	remoteviews.setTextViewText(0x7f0e0017, getDisplayName(l)); 
124:	remoteviews.setTextViewText(0x7f0e0107, s); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setTextColor, setTextViewText
161:	remoteView.setTextColor(viewId, Color.RED); 
-
163:	remoteView.setTextColor(viewId, Color.GREEN); 
-
166:	remoteView.setTextViewText(viewId, prefix + DateUtil.formatShortDateTime(selectedTime)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setInt
40:	rv.setInt(viewId, METHOD_SET_BACKGROUND_COLOR, color); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setOnClickFillInIntent, setTextViewText
42:	RemoteViews row = new RemoteViews(context.getPackageName(), 
-
44:	row.setTextViewText(android.R.id.text1, items[position]); 
-
49:	row.setOnClickFillInIntent(android.R.id.text1, intent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setOnClickPendingIntent
134:	views.setOnClickPendingIntent(viewId, pendingIntent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setImageViewResource, setProgressBar, setTextViewText, setViewVisibility
545:	RemoteViews contentView = new RemoteViews( 
-
548:	contentView.setImageViewResource(R.id.appIcon, mSmallIcon); 
549:	contentView.setViewVisibility(R.id.appIcon, View.VISIBLE); 
-
551:	contentView.setViewVisibility(R.id.appIcon, View.GONE); 
-
554:	contentView.setTextViewText(R.id.title, mContentTitle); 
-
557:	contentView.setTextViewText(R.id.description, mContentText); 
-
561:	contentView.setProgressBar(R.id.progress_bar, mProgressMax, 
-
566:	contentView.setTextViewText(R.id.progress_text, 
-
568:	contentView.setViewVisibility(R.id.progress_text, View.VISIBLE); 
-
570:	contentView.setViewVisibility(R.id.progress_bar, View.GONE); 
571:	contentView.setViewVisibility(R.id.progress_text, View.GONE); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setOnClickPendingIntent
32:	RemoteViews remoteViews  = new RemoteViews(context.getPackageName(), layout); 
-
41:	remoteViews.setOnClickPendingIntent(view_id, pi); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setChronometer, setViewVisibility
264:	remoteViews.setViewVisibility(ids[1], View.VISIBLE); 
265:	remoteViews.setViewVisibility(ids[2], View.VISIBLE); 
266:	remoteViews.setViewVisibility(ids[3], View.GONE); 
267:	remoteViews.setChronometer(ids[3], SystemClock.elapsedRealtime(), null, false); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setTextViewText
48:	mExpandedView.setTextViewText(viewId, text); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setTextViewText
150:	mNotificationView.setTextViewText(id, text); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setTextViewText, setViewVisibility
196:	views.setViewVisibility(projectViewId, project == null ? View.INVISIBLE : View.VISIBLE); 
197:	views.setTextViewText(projectViewId, project != null ? project.getName() : ""); 
Full Snippet Info
5
CodeRank
Related Android RemoteViews Questions & Answers:
See Code Examples for Android RemoteViews Methods: