forecastie icon indicating copy to clipboard operation
forecastie copied to clipboard

Widget 5x1 unavailable in Android 11

Open JonnyTech opened this issue 3 years ago • 11 comments

In Android 9 and 10 the 5x1 widget was available:

img_27

But after updating to Android 11 the size is now 5x2:

Imagepipe_1

How can the 5x1 widget be returned? The narrower size is ideal for taking up less screen estate.

JonnyTech avatar Nov 24 '20 18:11 JonnyTech

Try adding the widget to the screen, then dwell-click on it. You should be able to use the handles to resize it, We should probably get rid of that ability and set it as 5x1 all the time, the resizing adds nothing and only causes minor problems.

robinpaulson avatar Nov 25 '20 03:11 robinpaulson

I also see the 2x1 widget is now 3x2. More investigation required. Unfortunately I'm stuck in the stone ages with LineageOS 16 (Android 9) and can't do so.

robinpaulson avatar Nov 25 '20 03:11 robinpaulson

Try adding the widget to the screen, then dwell-click on it. You should be able to use the handles to resize it

Only able to increase the height (5x3, 5x4, etc), not able to decrease to 5x1, the minimum is 5x2.

JonnyTech avatar Nov 25 '20 09:11 JonnyTech

Unfortunately I'm stuck in the stone ages with LineageOS 16 (Android 9) and can't do so.

What device do you have?

JonnyTech avatar Nov 25 '20 09:11 JonnyTech

Hmm, fascinating. There must be a default size set somewhere, perhaps in one of the widget xml files.

robinpaulson avatar Nov 25 '20 09:11 robinpaulson

It's this file: time_widget.xml.

Perhaps the padding (currently at 8dp) is too high?

Could you take a screenshot for how it looks when you add it to the home screen?

robinpaulson avatar Nov 25 '20 10:11 robinpaulson

What device do you have?

Samsung Galaxy S5 Mini. I don't want stock Android, and there is no later version of Lineage for this device.

robinpaulson avatar Nov 25 '20 10:11 robinpaulson

Could you take a screenshot for how it looks when you add it to the home screen?

Imagepipe_0

JonnyTech avatar Nov 25 '20 10:11 JonnyTech

@JonnyTech after update to Android 11 have count of lines and/or columns at Home screen increased too or it has stayed the same and only count of needed space for Forecastie widgets have increased? I've looked at sizes of widgets on Android 11 Emulator and haven't seen increase of needed space. According to documentation and code in time_widget.xml we don't specify width and height in lines and columns but in dp (Density-independent Pixels). So count of lines and columns calculated by system based on Home screen implementation and size of the screen. But we can add minResizeWidth and minResizeHeight to add option to make widget small and give to user freedom to decide how they want widget to look like.

fAntel avatar Nov 26 '20 13:11 fAntel

I can change grid size in the launcher but 5x1 is not available in any of them.

Imagepipe_0

Android 10 (LineageOS17) is ok but Android 11 (LineageOS18) is not.

JonnyTech avatar Nov 26 '20 16:11 JonnyTech

Is there anything that I can do to test without recompiling?

JonnyTech avatar Dec 19 '20 21:12 JonnyTech