Well, there is the correct answer and my answer. :-)
The correct answer is drag and drop. There is code for swimming around the Android device for the Music app, but itโs out of my skill level with touch events right now.
In one case, I need this function, I created a list using the up / down buttons to allow the user to repeat. Awful, but it works.
Using the context menu, as you indicate, can certainly be made to work, but if you can get rid of the screen real estate, it will be easier to place the buttons. You can even consider turning on / off the visibility of buttons through the options menu if the screen has been unpleasant all this time.
And, someday, I hope to make drag-and-drop a ReorderableListView as a reusable component ... but I would not hold my breath. Maybe someone else has one that I haven't encountered yet.
CommonsWare
source share