-
-
Save hitherejoe/84442e103e4fd30a9dde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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