https://kotlinlang.org logo
#glance
Title
# glance
n

Nicholas Doglio

06/04/2022, 4:56 PM
Can I call a Glance Composable within a regular Composable? I want to have a live preview of my widget within the configuration screen so a user could see what it will look like based on settings they change (like the attached screenshot from Weather Timeline)
m

Marcel Pinto

06/09/2022, 12:27 PM
Unfortunately there is no interop between Jetpack Compose and Glance. Although, you could potentially implement a widget host with https://developer.android.com/reference/android/appwidget/AppWidgetHostView https://developer.android.com/guide/topics/appwidgets/host
👍 1
Feel free to open a Feature Request. It might be sth we could enable. https://issuetracker.google.com/issues/new?component=1097239&template=1611667
👍 1
2 Views