Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Jetcaster] Add round widget #1406

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

[Jetcaster] Add round widget #1406

wants to merge 1 commit into from

Conversation

bbade
Copy link

@bbade bbade commented May 24, 2024

  • Add a round appwidget at fixed 2x2 size
  • Add placeholder image for loading and no-album-art states.
  • Move shared components into AppWidgetComponents.kt

Test: Add both widgets to home screen. To test placeholder, clear app data, add widgets to home screen, then toggle day/night mode and see that the placeholder asset changes.

Screenshot 2024-05-24 at 1 56 08 PM

@bbade bbade requested a review from a team as a code owner May 24, 2024 18:56
@bbade bbade requested a review from MagicalMeghan May 24, 2024 18:56
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/app_widget_description"
android:minWidth="120dp"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In many devices 120dp size doesn't come out to be 2x2 in landscape, and so, even if in portrait it can be more than 120, the widget won't end up at 2x2.

Is the widget able to flex until the min sizes mentioned here for 2x2 - so that in portrait it will land as 2x2 which would look optimal?
https://developer.android.com/design/ui/mobile/guides/widgets/sizing

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested and it looks pretty bad at the lower end of the 2x2 bucket. Probably don't want to allow smaller than 120x120

image

Also...
- Add placeholder image for loading and no-album-art states.
- Move shared components into AppWidgetComponents.kt

Test: Add both widgets to home screen. To test placeholder,
clear app data, add widgets to home screen, then toggle day/night
mode and see that the placeholder asset changes.
Copy link
Contributor

@shamalip shamalip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants