Is there really no way to get the actual size of a...
# glance
t
Is there really no way to get the actual size of a glance widget?
LocalSize.current
doesn't actually return the widget size, it returns the widget size threshold that I've defined (i.e.
LocalSize.current.width
or
LocalSize.current.height
>= some width threshold, or height threshold, or both, then return a different composable element (i.e. small widget, medium widget, large widget)).
c
You’ll need to handle this outside of Glance in the widget’s API https://developer.android.com/develop/ui/views/appwidgets/layouts#provide-exact-layouts
also keep your posts in a single thread, please. Easier to answer and to follow the context.