Page MenuHomePhabricator

Add floating queue element
Closed, ResolvedPublic5 Estimated Story Points

Assigned To
Authored By
RHo
Jun 20 2018, 4:39 PM
Referenced Files
F25243592: Screenshot_1534973968.png
Aug 22 2018, 9:41 PM
F25063572: image.png
Aug 17 2018, 4:19 PM
F25063557: image.png
Aug 17 2018, 4:19 PM
F25063577: image.png
Aug 17 2018, 4:19 PM
F25029704: Screenshot_1534461799.png
Aug 16 2018, 11:32 PM
F25021932: image.png
Aug 16 2018, 9:44 PM
F25026104: main-MainActivity-08162018191652.png
Aug 16 2018, 9:44 PM
F25026417: image.png
Aug 16 2018, 9:44 PM

Description

Break out the addition of a 'floating article queue' to a separate subtask to cover the following:

  • Remove article tab icon from the Explore feed toolbar and make it a floating element visible across all bottom nav menu items when the Article view is minimized
  • "Article queue" element shows a thumbnail from the top-most open tab
  • There is a transition between the full article view when it is minimized to the "article queue" and vice versa
  • New floating "article queue" element shows the exact number of tabs open [T150462]

Zeplin: https://app.zeplin.io/project/57a120b91998d8977642a238?seid=5b2152c94e9d9b4e0af911ff
Invision: https://wikimedia.invisionapp.com/public/prototype/sji0b12et0051rw018db4em1w/b2ee8aad

Event Timeline

Change 441516 had a related patch set uploaded (by Cooltey; owner: Cooltey):
[apps/android/wikipedia@master] [WIP] Prototype 1: Add floating queue element

https://gerrit.wikimedia.org/r/441516

Hi @RHo, what's the expected behaviors to show the Snackbar when having a floating queue view?

Looks like the Snackbar will be covered by the floating queue view. The following screenshot shows a "undo" Snackbar when swiping off cards

Screenshot_1529627238.png (1×1 px, 1 MB)

Hi @RHo, what's the expected behaviors to show the Snackbar when having a floating queue view?

Looks like the Snackbar will be covered by the floating queue view. The following screenshot shows a "undo" Snackbar when swiping off cards

Screenshot_1529627238.png (1×1 px, 1 MB)

Hey @cooltey - the snackbar should push the floating queue element upwards when it appears. See YouTube for the same action:

Screenshot_20180622-023519.png (1×1 px, 923 KB)

Vvjjkkii renamed this task from Add floating queue element to kkaaaaaaaa.Jul 1 2018, 1:03 AM
Vvjjkkii removed cooltey as the assignee of this task.
Vvjjkkii raised the priority of this task from Medium to High.
Vvjjkkii removed the point value for this task.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii edited subscribers, added: cooltey; removed: gerritbot, Aklapper.
Sharvaniharan lowered the priority of this task from High to Medium.
Sharvaniharan set the point value for this task to 5.
Sharvaniharan renamed this task from kkaaaaaaaa to Add floating queue element.Jul 1 2018, 3:53 AM
Sharvaniharan updated the task description. (Show Details)

Change 444042 had a related patch set uploaded (by Cooltey; owner: Cooltey):
[apps/android/wikipedia@prototype_floating_queue] [READY] Prototype 1: Add floating queue element

https://gerrit.wikimedia.org/r/444042

Change 441516 abandoned by Cooltey:
[READY] Prototype 1: Add floating queue element

Reason:
Move to prototype_floating_queue branch

https://gerrit.wikimedia.org/r/441516

hi @cooltey - just one thing on the the floating queue bar, is it possible to ensure the elevation is the same as expected for a standard Material 'Dialog'?

At the moment the element looks a bit lost over the feed as it seems like there is insufficient shadow:

Actual:
A. Feed eg 2 Lt main-MainActivity-08022018201802.png (1×1 px, 178 KB)
A. Feed Lt main-MainActivity-08022018201918.png (1×1 px, 260 KB)
Expected:
image.png (640×360 px, 179 KB)

Hi @RHo

I've checked the elevation settings on the prototype, it was set to app:cardElevation="10dp", and it looks like the same when I set it to 20dp or 5dp.

Also, now I am not sure that we can change the shadow's dark level or not.

If you wish to make the shadow darker and it might need to add another layer to the floating queue view to customize the shadow.

Hi @RHo

I've checked the elevation settings on the prototype, it was set to app:cardElevation="10dp", and it looks like the same when I set it to 20dp or 5dp.

Also, now I am not sure that we can change the shadow's dark level or not.

If you wish to make the shadow darker and it might need to add another layer to the floating queue view to customize the shadow.

Hmm, are you able to explore if there's another attribute that can be set which makes the shadow more apparent when the elevation is changed? It's quite important that we make it more overt for the prototype.
Not sure if it helps but this talks about a fix required so that the elevation change is reflected in the shadow:
https://stackoverflow.com/questions/27477371/android-elevation-not-showing-a-shadow

Also, this demo shows how the changing the elevation should alter the appearance:
https://material.angular.io/guide/elevation

@RHo

I see, thanks for the references.

So far I've noticed that we can make the view shows shadow by using android:elevation or app:cardElevation on the CardView, maybe there's another way to make the shadow more apparent and I will try to approach the expected shadow.

Change 450891 had a related patch set uploaded (by Cooltey; owner: Cooltey):
[apps/android/wikipedia@prototype_floating_queue] UI Tweak to prototype floating queue

https://gerrit.wikimedia.org/r/450891

hi @cooltey - thanks for fixing the shadow, it looks good now! A couple of ever so minor quibbles still:

Actual (Light)
image.png (1×1 px, 710 KB)
Expected:
image.png (640×360 px, 134 KB)
Actual (Dark)
main-MainActivity-08162018191652.png (1×1 px, 322 KB)
Expected:
image.png (640×360 px, 136 KB)
Actual (Black)
image.png (1×1 px, 394 KB)
Expected:
image.png (640×360 px, 131 KB)
  • It's expected the Floating queue element should have 2dp rounded corners (Actual: sharp 0dp corners)
  • It's expected that on Dark and Black mode the 'frame' icon around the number of tabs should use the same Material theme borders and rules color.

Hi, @RHo

Now I am using the @android:drawable/dialog_holo_light_frame to be the background, which it comes from the android library.

If I set the background color of the children layer to be white, it will make the rounded corners disappear.

But, if I did not set the background color of the children layer to be white, the background would be a little bit greyer (please see the screenshot below)

Does it look good to you?

Screenshot_1534461799.png (1×1 px, 491 KB)

Hi @cooltey - the screenshot still shows the sharp corners for the left top and bottom parts of the queue element (where the image thumbnail is), and I am not a fan of the semi-transparency. If it is not possible to add rounded corners I would rather we reduce the width of the floating queue element by 16dp as an alternative way to get it to stand up more from the cards.

Ie: Revised Expected:

Light
image.png (640×360 px, 179 KB)
Dark
image.png (640×360 px, 137 KB)
Black
image.png (640×360 px, 132 KB)

Please also note the second point in my previous comment about the open tabs number icon on Dark and Black:

It's expected that on Dark and Black mode the 'frame' icon around the number of tabs should use the same Material theme borders >>and rules color.

Hey @cooltey - an unrelated interaction issue that I just noticed is that the floating queue element is not visible over a reading list. It is expected that the Floating queue element remains visible over a single reading list as well.

Restricted Application changed the subtype of this task from "Deadline" to "Task". · View Herald TranscriptAug 22 2018, 2:57 PM

Hi, @RHo
Should the floating queue element in the same position as the other screens? or should it be moved to the bottom?

Screenshot_1534973968.png (1×1 px, 281 KB)

Hi @cooltey, moving to the bottom (with 8dp padding) is preferable, but just having it remain visible is the main thing thanks!

@RHo I see, thanks! Please download the latest version the the prototype one APK to see the updates.

Change 444042 abandoned by Cooltey:
Add floating queue element

Reason:
Move to master branch

https://gerrit.wikimedia.org/r/444042

Change 450891 abandoned by Cooltey:
UI Tweak to prototype floating queue

Reason:
Move to master branch

https://gerrit.wikimedia.org/r/450891