Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created March 23, 2016 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/c880fd60f229bd0b6640 to your computer and use it in GitHub Desktop.
Save hitherejoe/c880fd60f229bd0b6640 to your computer and use it in GitHub Desktop.
RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.notif_custom_view);
remoteViews.setImageViewResource(R.id.image_icon, iconResource);
remoteViews.setTextViewText(R.id.text_title, title);
remoteViews.setTextViewText(R.id.text_message, message);
remoteViews.setImageViewResource(R.id.image_end, imageResource);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment