Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created January 1, 2016 12:04
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/84442e103e4fd30a9dde to your computer and use it in GitHub Desktop.
Save hitherejoe/84442e103e4fd30a9dde to your computer and use it in GitHub Desktop.
final ContentRecommendation.Builder builder = new ContentRecommendation.Builder();
builder.setBadgeIcon(R.drawable.vineyard)
.setIdTag("Post" + i + 1)
.setTitle(post.description)
.setProgress(100, 0)
.setSortKey("1.0")
.setAutoDismiss(true)
.setColor(ContextCompat.getColor(this, R.color.primary))
.setBackgroundImageUri(post.thumbnailUrl)
.setGroup("Trending")
.setStatus(ContentRecommendation.CONTENT_STATUS_READY)
.setContentTypes(new String[]{ContentRecommendation.CONTENT_TYPE_VIDEO})
.setText(getString(R.string.header_text_popular))
.setContentIntentData(ContentRecommendation.INTENT_TYPE_ACTIVITY,
buildPendingIntent((ArrayList<Post>) recommendations, post), 0, null)
.setContentImage(bitmap);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment