Cazimir Roman
Feb 9, 2021

--

The notification view is the custom view that is used for the notification:

I declared this as a member:

private lateinit var notificationView: RemoteViews

And then in onCreate i instantiate this remote view:

this.notificationView = RemoteViews(packageName, R.layout.custom_notification) -> R.layout.custom_notification is the custom layout that I used.

The import for RemoteView is from android.widget.RemoteViews

--

--

Cazimir Roman
Cazimir Roman

Written by Cazimir Roman

A curious developer with a passion for learning and creating innovative solutions to complex problems.

No responses yet