Repository navigation
Widgets: lay out at the real cell, one number size for every widget - #22
Merged
Merged
Conversation
…s version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One UI places a widget before it tells it its size, and the Glance session kept the empty size it started with, so every layout was worked out for the smallest cell and stretched: tile captions drifted off their tiles, empty bands everywhere. Each widget now reads its cell from the launcher at layout and lays out again on every resize. Every widget's dotted number takes one size per cell (WidgetHero), a share of the content's height by size class, instead of each widget growing its own way. Wide and Large are picked from 280 dp wide so the unfolded Fold's 3 columns get them, and Moment's name is every widget's title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The picker shows each 2 x 2 preview at about 136 x 150 dp on the Fold.
Start's name was cut beside play ("Outd"), so play moves up beside the
tile. Steps drops the share's words, which the bar already shows. Moment's
name takes the shared white title.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the unfolded Fold the widgets were inconsistent, left large empty bands, and the workout widget's tile captions drifted away from their tiles.
Cause
One UI places a widget before it tells the widget its size. The Glance session kept the empty size it started with, so every layout was worked out for the smallest cell and then stretched. Logging on the phone showed the launcher reporting 393 x 313 dp while the layout used 300 x 260.
Changes
onAppWidgetOptionsChanged).WidgetHero), a share of the content's height for each size class, instead of each widget growing its own way.-PdevAppoption from develop, so a branch build installs beside the release app.The widgets spec (section 6.5 and the size table) records the new rules.
Testing
🤖 Generated with Claude Code