zhanghai / zhanghai/MaterialFiles
Select multiple items with long-press
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 9k
- Forks
- 736
- PR merge metrics
- No merged PRs in 30d
Description
Hi, let's say I want to select the first 4 files but not the fifth one. Instead of selecting the files one by one, here's how I want to do:
- Select the 1st file

- Long-press the 4th file

- All the files between the 1st and 4th have been selected.

Is there a way to do that currently or does it have to be implemented?
If it has to be implemented, maybe the developer(s) could take some inspiration of what has been done in Simple Gallery Pro. In this app it is possible to do long presses to select multiple files.
Considerations
Yes, I already know I can select all items and de-select those I don't want. I kept in simple with only 6 items in my screenshot but I do have directories containing 2000+ files and "Select all" is useless for those.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files, tests, or entry points are named in the issue. Start by reproducing the described selection flow in an Android file list and trace the existing item-selection handling; done means long-pressing a later item selects the contiguous range without selecting items outside it, including in large directories.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100