Swipe or Slide and Drag and Drop items in RecyclerView

Sdílet
Vložit
  • čas přidán 29. 07. 2024
  • Hello, in this video, I’ll be showing you how to add swipe and drag gesture events to a RecyclerView.
    Download project here:
    codeible.com/coursefiles/swip...
    View on Codeible:
    codeible.com/view/videotutori...
    0:00 - Intro
    0:23 - Attaching the ItemTouchHelper
    1:04 - GetMovementFlags & MakeMovementFlags
    2:02 - Adding Swipe events & gestures
    2:28 - Multi-Direction Support
    3:04 - Adding Drag and Drop gestures
    3:31 - Removing and animating items on Swipe
    4:59 - Swapping items with Drag and Drop
    6:20 - Results
    If you find this video helpful, please Like, Share, and Subscribe to support the channel!
    Support Codeible on Patreon!
    / codeible
    Reddit:
    / codeible
    Follow on Pinterest:
    / codeible
    Follow on Instagram:
    / codeibleig
    Follow on Twitter:
    intent/follow?ori...

Komentáře • 7

  • @MrLaxr-op4be
    @MrLaxr-op4be Před rokem +1

    Your videos are simple, updated and easy to understand! Subscribed, Thanks in advance !

  • @foryouandme8644
    @foryouandme8644 Před rokem +1

    Thank you Sir

  • @SenzAkechi
    @SenzAkechi Před rokem +2

    Obvious and Clear
    Thanks for great instruction.

  • @vitquack4078
    @vitquack4078 Před rokem

    Gratitude Well Discussed

  • @isaacinvang
    @isaacinvang Před 9 měsíci

    But, how to swap two item moving the the targeted item to the dragged item's position? I don't want the targeted item to the next position.

  • @Yazon2006
    @Yazon2006 Před 5 měsíci

    Why java? 😂