Skip to main content
Filter by
Sorted by
Tagged with
Advice
1 vote
1 replies
33 views

I am building my home widget UI with Glance. I can see there is a HorizontalDivider Jetpack Compose Component. However, it seems like there doesn't exist one for use with Jetpack Glance? I am trying ...
smoak's user avatar
0 votes
0 answers
60 views

I’m building a small 1×1 and 3x1 (1x1 * 3) Glance AppWidget. Its layout is a vertical stack of three items: Top icon - optional Text - always present Bottom icon - always present I want this widget to ...
ikerfah's user avatar
1 vote
1 answer
204 views

I’m migrating my existing AppWidgetProvider-based widget to Jetpack Glance and I want to use a StackView (or ListView) inside the widget, backed by a RemoteViewsService (via setRemoteAdapter), just ...
Jan's user avatar
0 votes
1 answer
121 views

An <appwidget-provider> expects a previewLayout attribute on modern Android versions. The documentation tells us what value we should use for initialLayout, but it never mentions the ...
anon's user avatar
1 vote
1 answer
380 views

I build a Glance Home Widget for Android, and I want to apply some transparency to my Box' background: @Composable private fun getTransparentColor(color: Color, transparency: Int): ...
Kantine's user avatar
0 votes
1 answer
168 views

This is the content of my widget: @Composable private fun MyContent(glanceModifier: GlanceModifier = GlanceModifier, widgetData: WidgetData) { InfoPanel( glanceModifier = ...
NullPointerException's user avatar
1 vote
0 answers
129 views

I have a Glance widget, and when configuring it initially I save some IDs to Shared Preferences. These IDs should be read in the provideGlance method, but it is not called after configuring the widget,...
km11's user avatar
3 votes
2 answers
259 views

I'm trying to migrate an existing Android widget to use Glance Compose, but haven't been able to find any documentation or answers on if it's possible to make it so that users with my existing widget ...
Jing Chen's user avatar
0 votes
1 answer
374 views

I have a jetpack compose glance widget that shows a text message on startup. If the user enables accessibility services for the app, the glance widget should change into a button. But that is not ...
Mervin Hemaraju's user avatar
2 votes
1 answer
229 views

I am using the Jetpack glance framework for creating widgets in Android, and I have encountered a problem when using text inside a row. Expected behavior:- Text should truncate as soon as it touches ...
Vineet Mehra's user avatar
0 votes
1 answer
64 views

I am creating a Glance Widget. I want to draw a circle and a line in the middle but I have a problem. This is image my problem This is my code @Composable fun TestCL() { Row( ...
hiepkhach109's user avatar
0 votes
2 answers
204 views

I have created an Android Widget using Jetpack Glance, I need to update it using CoroutineWorker so I am using WorkManager for it, here is the sample code class MyWidget : GlanceAppWidget() { ...
BraveEvidence's user avatar
4 votes
1 answer
66 views

To check if a widget is placed on screen I use this function override suspend fun checkWidgetsOnScreen(): Boolean = withContext(defaultDispatcher) { val glanceId = ...
Foenix's user avatar
1 vote
1 answer
2k views

I'm building an Android widget with Jetpack Glance and want to adjust the layout based on widget width changes. I’ve tried several approaches but haven’t found a consistent way to handle dynamic ...
Yazan's user avatar
1 vote
1 answer
100 views

I am building a small todo list widget for fun and learning. I wanted to use SqlDelight for persisting the data and Jetpack Glance for building the android widget. This is my code: in GlanceWidget ...
Micha's user avatar

15 30 50 per page
1
2 3 4 5
7