When switching Color Palette from the Android Theme page, I think there is a system bug :
all the 4 first colors are applied without errors
but all the colors of the next pages fallback to the colors of the first page totally ignoring what I…
What string do we pass into androidx.glance.text.FontFamily to specify a custom font? For example, if I imported @font/open_sans_regular, is the family supposed to be "open_sans_regular"?
/**
* Describes the family of the font.
* Defaults are…
In my case there is no button "Refresh" data in my widget UI. From what event can widget be updated when user just place it on screen?
I tried to use method onEnabled of GlanceAppWidgetReceiver, but it is not fired. I need some event where I can run…
Using Jetpack Compose "Glance" package (in alpha-0.0.5, beta-01 bugged for me) : is it possible to retrieve the "Configuration data" added at the "widget creation" when displaying the "widget update/reconfigure" screen using the…
I am looking for suggestions on how to display list of scrollable images(using image URLs) inside android widget using jetpack glance.
I am currently using LazyColumn to display list items inside the widget.
Currently the alpha version link contains…
The Android Code Search site contains a glance directory where it provides a testing framework for Glance Widgets.
How can I import this as a project into Android Studio so that the appropriate dependencies are downloaded and the resulting code…
I am looking at the source code for Glance Widgets on Android Code Search. I would like to replicate the code used for CheckBoxTest.kt but running into an issue. The problem is the code uses a version of GlanceAppWidget.kt which differs from…
I'm creating app widget and I want to achieve that only part of the widget is scrollable.
When I created
Box(
modifier = GlanceModifier
.fillMaxSize()
…
I'm creating app widget with glance. And on my personal phone API 30 resizable works on emulator API 33 or 32 resizable doesn't work.
Is that emulator issue? But Google Chrome widget resizable works.
xml/widget_info.xml
I am trying to build dynamic resizing of a widget of a Calendar (to show 1 month or 2 months depending on available space).
I have added these preview layouts in AppWidgetProvider.
private fun updatePreviewLayout(
appWidgetIds:…
Based on the official documentation,
I can see TextClock seems to be supported now in new GlanceAPI as a Remote view, but I can not used in our example code,
class RemoteWidget : GlanceAppWidget(errorUiLayout = R.layout.widget_error_layout)…
I would like to make simple widget for my weather app, to show local temperature. My question is: how to get the LocationTracker in my widget class?
class Widget: GlanceAppWidget() {...}
I implemented a Glance Widget using
Glance 1.0.0-alpha05
GlanceAppWidgetHost 0.2.2
Using the following provider spec. Notice the updatePeriodMillis = 0