Skip to content

Instantly share code, notes, and snippets.

@timrijckaert
Last active April 9, 2019 17:15
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 timrijckaert/ab410e338b273dc294a32f3f28a1ebc0 to your computer and use it in GitHub Desktop.
Save timrijckaert/ab410e338b273dc294a32f3f28a1ebc0 to your computer and use it in GitHub Desktop.
private fun createBigContentView(text: String, bigImage: Bitmap, pill: Bitmap) =
RemoteViews(context.packageName, R.layout.notification_big_content_view).apply {
setImageViewBitmap(R.id.notification_background_image, bigImage)
setImageViewBitmap(R.id.notification_pill, pill)
setTextViewText(R.id.notification_text, text)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment