ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

RecyclerView + CardView - Part 5 - Delete Item using swipe - Android Studio Tutorial

Delete Item using swipe

RecyclerView + CardView - Part 5 - Delete Item using swipe - Android Studio Tutorial

swipe to delete

recyclerview

android studio tutorial

android

android apps

android apps programming

android development

android studio

android tutorial

beginners

how to make apps

learn to code

tutorial

recyclerview tutorial

recyclerview animation

android recyclerview

android recyclerview example

android recyclerview adapter

android recyclerview animation

Автор: Phuc VR

Загружено: 2020-09-16

Просмотров: 1048

Описание: Hi guys! I'm Phuc VR
In this tutorial, We will learn how to delete an item in recyclerView using swipe

We have recyclerView. We remove the item by swipe item to the left or the right. So look like smooth and cool. Let's get started.

First, Create a new class ...... that extend ItemtouchHelper.CallBack and write the constructor

The first parameter in supper adds support for dragging the recycler view item up or down. We don't care about that hence. So giving here is zero. The second parameter is to pass Simplecallback information about left and right swipes.

Next, we need to override onSwiped(). This is called when an item is swiped off the screen. You can leave it as is.

The deleteItem() method does not exist yet but we’ll implement it in the adapter.

In the adapter, we need to implement the deleteItem() method we called in SwipeToDeleteCallback earlier

In mainactivity create a new ItemTouchHelper using our SwipeToDeleteCallback and attach it to the RecyclerView.


-----------------------------------------------------------------------
Donate Me:
paypal.me/nguyenphucnick

For the beginner:
   • Android Studio Tutorial basic for beginner  

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
RecyclerView + CardView - Part 5 - Delete Item using swipe - Android Studio Tutorial

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]