[customizable-menu] Support reordering menu sections
Categories
(Firefox for Android :: Menu, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: petru, Assigned: petru)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][android-core])
Attachments
(7 external files)
Once a user starts to drag they can place it above or below any section, can place it above or below a section.
Any change in the menu structure should automatically be persisted.
Updated•21 days ago
|
| Assignee | ||
Comment 1•15 days ago
|
||
Add nonDraggableItems to createListInteractionState.
Items in it cannot be dragged but, unlike ignoredItems, other
items can still be moved next to or dropped onto them.
| Assignee | ||
Comment 2•15 days ago
|
||
Items are moved while they are dragged. Until the list is laid out again,
the dragged item's index can still be the old one, so the drop animation
would start from the wrong place. Find the item by its key instead.
| Assignee | ||
Comment 3•15 days ago
|
||
With live reordering the dragged item is moved in the list while it
follows the finger. Its placement animation then started from where it
was before the move, making it jump back there and then to the finger.
Same behavior already exist for the tabs tray which also doesn't
animate the placement of the dragged item.
| Assignee | ||
Comment 4•15 days ago
|
||
The list gives the position of an item only while it is visible.
Once the dragged item was out of view, it was moved as if at the
top of the list, away from the finger.
Remember its last position instead, similar to the functionality
from the tabs tray.
| Assignee | ||
Comment 5•15 days ago
|
||
The order of the items in the customization screen was changed only when
the user let go of the dragged item, not while dragging it.
The list then moved the item to its new place and this meant that it was
drawn in the wrong place for a frame, because the slide started from the
position the item had before the list moved it.
The list also played its own animation on top.
The item should stay where it was let go of and slide into its new place.
To avoid the issue we can offset the item while the list places it, by
the distance between where it was let go of and where the list puts it.
The item is then drawn where it was let go of, and slides into its place
as the offset shrinks to zero.
The list's own animation is turned off for this item, as it would add to
ours and move the item away from where it was let go of.
| Assignee | ||
Comment 6•15 days ago
|
||
Dragging list items is only supported for lazy lists, so show all the
items of the customize menu screen in one LazyColumn, keeping the same
spacing between them.
| Assignee | ||
Comment 7•15 days ago
|
||
Sections shown in the menu, including the mandatory ones, can be long
pressed and dragged to reorder them. While dragged, a section is faded
and the sections below it take its space. The section is moved, and the
new structure of the menu saved, when the user lets go of it.
Hidden sections cannot be moved, and letting go of a section over them
leaves it where it was.
Updated•14 days ago
|
Updated•14 days ago
|
Updated•14 days ago
|
Updated•14 days ago
|
Comment 9•6 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4389fb2896d5
https://hg.mozilla.org/mozilla-central/rev/503b4383fbdf
https://hg.mozilla.org/mozilla-central/rev/9882ee4d150c
https://hg.mozilla.org/mozilla-central/rev/cea09d8a6da0
https://hg.mozilla.org/mozilla-central/rev/33f7de2ed3ef
Description
•