iPaulPro / Android-ItemTouchHelper-Demo

Basic example of using ItemTouchHelper to add drag & drop and swipe-to-dismiss to RecyclerView.
Apache License 2.0
2.51k stars 499 forks source link

Support library 23.1 update breaks swipe to remove #20

Open dream09 opened 8 years ago

dream09 commented 8 years ago

If you update build.grade to use API 23 and associated dependencies, when swiping an item from the recycler view a gap can then appear when scrolling.

screenshot_20151023-112648

Steps to reproduce:

  1. Clone repository
  2. Open project using Android Studio
  3. Add extra 10 items to strings.xml <array name="dummy_items"> to give a bigger scrolling list
  4. Update build.gradle to use API 23
apply plugin: 'com.android.application'

android {
  compileSdkVersion 23
  buildToolsVersion "23.0.1"

  defaultConfig {
    applicationId "co.paulburke.android.itemtouchhelperdemo"
    minSdkVersion 16
    targetSdkVersion 23
    versionCode 3
    versionName "1.1"
  }
}

dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  compile 'com.android.support:design:23.1.0'
  compile 'com.android.support:recyclerview-v7:23.1.0'
}
AkshayChordiya commented 8 years ago

@dream09 Same issue here. I hope it is fixed soon.

nor13 commented 8 years ago

The bug has been fixed, it works fine in 23.1.1.

dream09 commented 8 years ago

@nor13 Thanks for the update, just tested and all good again using 23.1.1.

AkshayChordiya commented 8 years ago

@dream09 Great! Thank you.

hatpick commented 8 years ago

Hello guys,

I still see the same problem with 23.1.1 any solution?

MichaelObi commented 8 years ago

Same problem in 23.1.1.

jaredsburrows commented 8 years ago

Update to 23.2.1