Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class RemoteViewInteropWidget : GlanceAppWidget() {
@Composable
override fun Content() {
Column {
Text(text = "Above remote views")
val context = LocalContext.current
AndroidRemoteViews(remoteViews = RemoteViewWidget(context))
Text(text = "Below remote views")
}
}
}
class RemoteViewWidget(context: Context) :
RemoteViews(context.packageName, R.layout.widget_remote_view) { /* ... */ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment