I have initialized two widgets named like the ones on YT Music. Right now, it can't do any actions, i have just initialized them and made it display a random image fetched from the internet as a placeholder template to fetch the thumbnail image later on.
But, I have run into quite a bit of issues. I have created the widget using Glance, a Jetpack Compose like widget system. But, the components are not backwards compatible, so I cannot use a Jetpack image with a Glance widget. And, since Glance is fairly new, many APIs have not been fully created yet, such as aspect ratio, crop shape, alignment, etc... I have needed them countless times, but they just don't exist.
Because of this, should I switch to using xml layout to build the widget? This can avoid many complications with the widget in the future.
I have initialized two widgets named like the ones on YT Music. Right now, it can't do any actions, i have just initialized them and made it display a random image fetched from the internet as a placeholder template to fetch the thumbnail image later on.
But, I have run into quite a bit of issues. I have created the widget using Glance, a Jetpack Compose like widget system. But, the components are not backwards compatible, so I cannot use a Jetpack image with a Glance widget. And, since Glance is fairly new, many APIs have not been fully created yet, such as aspect ratio, crop shape, alignment, etc... I have needed them countless times, but they just don't exist.
Because of this, should I switch to using xml layout to build the widget? This can avoid many complications with the widget in the future.