Assigned
Status Update
Comments
du...@gmail.com <du...@gmail.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
Description
Version used: 1.1.1
Devices/Android versions reproduced on: Any device.
My app requires the exact size of the widget in pixels to plot a graph to show in the widget. I've attached an image of the graph. This is rendered in Glance using an Image composable with `contentScale = ContentScale.Fit`. Notice, the image does not extend to the full width of the widget. I can use `ContentScale.FillBounds` but this leads to interpolation and fuzziness.
Prior to Glance, the user clicked the AppWidget which opened the main activity and I would use `getIntent().getSourceBounds()` to get the size of the widget in pixels.
Is is possible to implement `getLaunchOptions` from `RemoteViews.java` in Glance:
```
public Pair<Intent, ActivityOptions> getLaunchOptions(View view) {
Intent intent = mFillIntent == null ? new Intent() : new Intent(mFillIntent);
intent.setSourceBounds(getSourceBounds(view));
....
```
Ideally, it would be great to get the widget size in pixels from the glance app widget manager. This actually allows me to render anything in a Glance Widget by drawing to a canvas/bitmap and rendering the bitmap in the widget.