Status Update
Comments
za...@google.com <za...@google.com> #2
Hello,
I'm only a little familiar with Power Apps. Is your app a mobile app or a web app?
This link
The primary
If your app does not work on Android mobile devices, you can also consider the
an...@gmail.com <an...@gmail.com> #3
za...@google.com <za...@google.com> #4
the Glance library respects the sizes passed to it by the platform.
You should still be able to make the UI that you want. The platform passes a collection of sizes to the library, then the app should respond to each update with a UI that matches that size. These different UIs are then passed back to the platform as a collection, but it's up to the launcher to pick which one to show.
In your case the last, different size, might not even be being presented to the user if the launcher doesn't support landscape. You could test this by outputting solid colors based on what the local size is.
an...@gmail.com <an...@gmail.com> #5
Thanks for the valuable information.
What you are basically saying is that it's the manufacturer/launcher fault and there is no way for us to fix this except maybe contact the manufacturer and inform them about the issue?
Your suggestion with the solid colors is exactly what I have done in my original question. You can see the result in the attached screenshot.
It's quite sad that the behavior does not seem to be consistant across all Android phones... but hey, that's the Android world
mn...@gmail.com <mn...@gmail.com> #6
Version: 1.1.1
Device: Motorola edge 30 Neo
OS : Android 14
1.recomposition:: 363.42856.dp x 262.09525.dp
2.recomposition:: 669.7143.dp x 132.57143.dp
It is full screen width widget, the size in the first recomposition is correct, but the second one ruins all the layout.
za...@google.com <za...@google.com> #7
This looks like a different situation. The second composition looks like its for the landscape view?
Description
Component used: LocalSize.current
Version used: 1.1.0-rc01 & 1.1.0-beta02
Devices/Android versions reproduced on: OnePlus 9 Pro Android 14
When I use SizeMode.exact, the widget size is not correct. The following code snipped should theoretically display a Yellow box, which should be equivalent to .fillMaxSize()
But the yellow Box is not full height. (See attached screenshot)
The widget size changes during recompositions:
Up until the third recomposition the value seems reasonable.
Possibly related to https://issuetracker.google.com/issues/335937242