Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long-press should initiate multiselect, not show context menu #899

Closed
jancborchardt opened this issue Feb 25, 2015 · 57 comments
Closed

Long-press should initiate multiselect, not show context menu #899

jancborchardt opened this issue Feb 25, 2015 · 57 comments
Assignees
Milestone

Comments

@jancborchardt
Copy link
Member

@davivel @rperezb @tobiasKaminsky

(Edited the title after @joeplus's comment.)

@joeplus
Copy link

joeplus commented Feb 25, 2015

May I make another comment regarding the long press? Since KitKat Google introduced a new usage of the long press gesture (at the bottom of the page), which now should be used for selection of items. The actions should be moved from the pop up to the action bar. Is this something you guys have already considered to implement long term (maybe with the new drawer and action bar combo)? For now a header makes sense of course!

@masensio
Copy link

As @joeplus said, we can introduce the new long press gesture.
selection_cab_example

This would mark the selected file and would improve the appearance of the contextual menu, if the pop up is replaced by a contextual action bar (CAB). (https://developer.android.com/design/patterns/selection.html )
selection_cab_big

In this case, we need to decide which options have to appear in the contextual menu.

@jancborchardt
Copy link
Member Author

Yeah – long-press should ideally initiate multi-select mode. As already mentioned in the past: #786 (comment)

Then we need to add a 3-dots-icon to each row (on the right) which then invokes the context menu for each file.

@jancborchardt jancborchardt changed the title Long-press menu doesn’t make clear what file it is about Long-press should initiate multiselect, not show context menu Feb 26, 2015
@joeplus
Copy link

joeplus commented Feb 26, 2015

Sounds great! Here is an example of how the three dots could be implemented, just in case.

Another question: Is the content for the listitem popup the exactly the same as the actionbar popup, thus having to different places for the same actions?

@stefan-niedermann
Copy link

duplicate of #426 ?

@radziu82
Copy link

radziu82 commented Aug 1, 2015

No Not duplicate. 426 is closed. This is needed basic functionality.

@jancborchardt
Copy link
Member Author

@davivel @masensio @rperezb @MTRichards where are we at with this? Deletion of multiple files is basically impossible (that is, a huge pain) due to multiselect not existing.

@rperezb
Copy link

rperezb commented Aug 5, 2015

@jancborchardt for the moment this is not expected.
Certainly, multiselection is needed as well as the improve on the UI, roadmap

@jancborchardt
Copy link
Member Author

Let’s move it up then @MTRichards @rperezb

@tobiasKaminsky
Copy link
Contributor

PR will be #1090 by @AndyScherzinger

@jancborchardt
Copy link
Member Author

@tobiasKaminsky isn’t that just about multiselect for upload?

@AndyScherzinger
Copy link
Contributor

Haven't had this issue in the radar yet

@tobiasKaminsky
Copy link
Contributor

Ah. Maybe. I just had read the title.
And then it would fit, right? ;)
@jancborchardt If it is just for upload, maybe you can clarify it in the issue description?

@jancborchardt
Copy link
Member Author

@tobiasKaminsky well this issue is about the app in general, everything excwpt the uploads view. ;) The normal files list, multiselect for that.

@tobiasKaminsky
Copy link
Contributor

I would also say that this is the next really big and important improvement that we should challenge right after #819 (which I have nearly finished).

@tobiasKaminsky
Copy link
Contributor

As @masensio said here #899 (comment) a long press would also bring the action for one single file, so "Then we need to add a 3-dots-icon to each row (on the right) which then invokes the context menu for each file." as @jancborchardt said (#899 (comment)) should not be needed, right?

@tobiasKaminsky tobiasKaminsky self-assigned this Sep 19, 2015
@tobiasKaminsky
Copy link
Contributor

Currently design with no functionality.
The checkboxes are only shown if one item is selected and disappear if no item is selected.
@jancborchardt the color of the selected items is set to #1D2D44, but seems to be lightened up by android...
(Of course the position of th checkbox in the square images is not correct).

multi1
multi2

@tobiasKaminsky
Copy link
Contributor

CAB will include:
if one item selected: all items from currently long press menu
if > 1 item seletced: download, move, copy, delete

@jancborchardt
Copy link
Member Author

Make the color a light grey then, that will look much better (so it looks like #f8f8f8 as on the web interface).

Also, the grid lines in thumbnaip view shouldn't be there.

@AndyScherzinger
Copy link
Contributor

The grey coloring gets even more important when #1090 is merged, due to the accent colored ticked checkboxes.

device-2015-08-07-180140

@jancborchardt
Copy link
Member Author

Yeah, also because the boxes themselves are already a very present indication. Only a slight row highlight is needed, if at all.

@AndyScherzinger
Copy link
Contributor

@tobiasKaminsky I added further icon work for material design purposes :) - One bug I found though is when you select just one them and rotate the screen the whole menu in the action bar is gone. Haven't investigated why this happens though.

@tobiasKaminsky
Copy link
Contributor

Can you open a new issue for this?

@AndyScherzinger
Copy link
Contributor

Done, please see #1411 I guess it is a save instance issue.

@malkomich
Copy link
Member

Hi guys,
I have been reviewing the PR #1176 and I have seen that the checkboxes are not always aligned:

In list view they could be aligned right always regardless if there are share icons or not, or maybe just keep the highlight and the top bar information about items selected and not the checkboxes.

For the grid view, the checkboxes could be more neccesary, but they could be shown at the top left size of each item to keep alignment:

About the favorite options, it would be better hide these options on multiple selection when a folder is selected, because it is a feature for files only.

@AndyScherzinger
Copy link
Contributor

@malkomich something seems of since the multi select branch implementation has other icons and some newer themeing, see screenshots here: #1434

@tobiasKaminsky
Copy link
Contributor

I have updated the branch with latest master.
Now it looks this way:
multi_list
multi_grid

@AndyScherzinger
Copy link
Contributor

I fixed the layouting (and coloring) for the action bar and the list items, see 0ef2389
device-2016-03-12-125532

@AndyScherzinger
Copy link
Contributor

@tobiasKaminsky I think @malkomich's point is that due to the fact that some elements are rendered with the file name so the check box is aligned differently. @jancborchardt any idea how this could be solved? The only thing I I can think of is to find a smart way to center the checkbox on each item or we need to find. Google photos for example has the checkbox in the top left corner.

@tobiasKaminsky
Copy link
Contributor

For me there are two different approaches, when entering multiselect:

  • show only the checkmarks, as the other icons are unimportant
  • keep every icon: move checkmarks to top left

@AndyScherzinger
Copy link
Contributor

True, not showing that info in multi select mode could also be an option I guess. So waiting for @jancborchardt's input since he is the expert :)

@tobiasKaminsky
Copy link
Contributor

Rethinking it, is not such a good idea, I think: what if you want to select all favorite items to unfavorite them?
So we should find a way to have the checkboxes shown with all other items!

@AndyScherzinger
Copy link
Contributor

Yeah, that is right. So sticking with top left is probably the easiest approach at the moment.

@tobiasKaminsky
Copy link
Contributor

Do you want to do this in the multiSelect branch? :)

@AndyScherzinger
Copy link
Contributor

Sure thing :) Gimme a second 😁

@AndyScherzinger
Copy link
Contributor

@tobiasKaminsky can you take care of the rotation bug regarding the action bar menu? :)

@tobiasKaminsky
Copy link
Contributor

I will do this tomorrow morning

@AndyScherzinger
Copy link
Contributor

Sweet! :)
Changes for the checkbox have been pushed to the branch.
device-2016-03-13-135019

@tobiasKaminsky
Copy link
Contributor

👍 looks great :)

@AndyScherzinger
Copy link
Contributor

I now also commited the logic to show hide the fab entering/exiting multi selction mode 😬 cca2e60

One thing I realized, might be something to deactivate with a flag is that if you do move or copy the file/folder chooser dialog also has multi selection mode which probably doesn't make sense.

@davivel
Copy link
Contributor

davivel commented Jul 13, 2016

In, and ready to go with version 2.1.0.

@davivel davivel closed this as completed Jul 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants