Created
January 18, 2022 04:35
-
-
Save husaynhakeem/85e4fa3cb7961bac108bc19074b56eb6 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
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