Repository navigation
How do I add the widget, and why does it draw a smaller layout than the space I gave it? #501
|
I stretched the widget over a large part of the home screen, but it still shows a compact layout with only a few lines. How is the layout chosen? |
Replies: 1 comment
|
Four of the twelve sizes have been seen, on an emulator's Pixel launcher at two font scales. The rest wait for #113. Add the widget:
The widget stretches both ways as far as the launcher allows, up to 640 dp each way on Android 12+. The widget does not scale one layout. It has twelve layouts and draws the one chosen for the size that the launcher reports. The layouts range from
To get more on the screen, drag the widget taller or wider until it reaches the next layout. All twelve layouts, with what each one shows, are listed at https://github.com/lumenpearson/lessons/blob/main/docs/widget.md#sizes If your launcher clips text or the widget draws something wrong, report it from «Настройки → О приложении → Сообщить об ошибке». Give the widget's size in cells and the font scale. |
Four of the twelve sizes have been seen, on an emulator's Pixel launcher at two font scales. The rest wait for #113.
Add the widget:
The widget stretches both ways as far as the launcher allows, up to 640 dp each way on Android 12+.
The widget does not scale one layout. It has twelve layouts and draws the one chosen for the size that the launcher reports. The layouts range from
TINY(110×40 dp, about 2×1) toHUGE(320×560 dp, about 5×8).TINYis one line with the state and a countdown;HUGEshows everything, in eight …