Мне нужно реализовать прокрутку для удаления в ListView
с помощью функции Отменить, как в приложении Gmail
Я знаю, что есть вопросы, которые уже задают вопрос о удалении, например
и
Но ни один из них не объясняет, как управлять Отменить после удаления и Анимировать назад удаленное представление об отмене!
Я нашел другого без ответа здесь
Как реализовать gmail как действие "Достижение или Отмена" в элементе списка
Итак, вот мой вопрос.
Как создать список в андроиде с удаленным удалением, затем показать UNDO в удаленном пространстве и Анимировать назад тот же вид, если отменено нажатие, также удалить параметр отмены на прокрутке или другой щелчок или прокрутку элемента?
У умных людей есть идея?
| ----------- ITEM 1-----------|
| ----------- ITEM 2-----------|
| --Deleted-------<[UNDO]>|
| ----------- ITEM 4-----------|
| ----------- ITEM 5-----------|
Заметьте: извините, что я не могу добавить изображение из-за моей низкой репутации!