azizkayumov / flashcard-maker-android

Flashcard Maker is an android app that allows you to create and import e-flashcards for convenient, paperless studying.
https://play.google.com/store/apps/details?id=com.piapps.flashcardpro
GNU General Public License v2.0
63 stars 22 forks source link

Drag & drop to change set order #27

Closed greyboxgt closed 3 years ago

greyboxgt commented 3 years ago

There is currently no way to change the default view of the card sets selection page. The card set icons appear in the order they were created. In the example below I would like to move January set icon to be the first icon on the top of the page and December to the bottom to be the last one, but I cannot do it. Would it be possible to drag the card sets icons by Tap & Hold + Drag gesture?

Screenshot_2020-10-10-12-28-49

azizkayumov commented 3 years ago

Todo:

azizkayumov commented 3 years ago

I released the beta version just now, it should be live in few hours. The drag & drop animation seems little bit strange at first, you may find it hard to put a set to the first position in a grid -> just hold any set -> drag up until you reach the top of everything -> drop it in the cleared area. Any scroll may cause the list to animate the reorder operation, it is messy somehow. Let me know if something comes up.

greyboxgt commented 3 years ago

I think the reordering works very well, thank you very much!!

azizkayumov commented 3 years ago

The previous beta could lead to new bugs: if one reorders sets in "All sets" section, opens "X" label section and reorders there, all "X" labelled sets are placed on top in "All sets" section. The last commit adds the ability to reorder sets for each label. For example, if you reorder sets labelled with "X" in the "All sets" section, you can now open "X" label section and reorder there too, and the reordering operation will be effective in the "All sets" section. I was thinking, users may want to reorder sets with some label specifically, so the synchronization between all sets should now work perfectly. The new beta version will reorder your sets according to their creation date (using set IDs as order numbers).