Skip to content
Discussion options

You must be logged in to vote

Check #113 and the README's "Honest status" section.

The ladder is WidgetSizeClass in :widget: twelve breakpoints under SizeMode.Responsive. The count is load-bearing. The launcher (API 31+) and Glance's findBestSize do not pick the largest breakpoint that fits. They pick the breakpoint nearest by squared distance. Without the intermediate rungs (SMALL_TALL, MEDIUM_TALL, LARGE_TALL, TALL), a tall widget four cells wide would draw the 110×300 single column, for example.

What to keep:

  • Do not remove or merge a rung to tidy the enum. WidgetSizeClassTest reproduces the launcher's rule and checks that:
    • every breakpoint maps back to its own class and is offered once;
    • four- and five-cell widths…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lumenpearson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area:widget for:contributor Whoever changes the code or the documents: setup, checks, where a change goes
1 participant