Skip to content

Commit

Permalink
remove setIsRecyclable(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-miao committed Mar 5, 2017
1 parent d235059 commit 4ec70c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apply plugin: 'com.android.application'


android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
compileSdkVersion 25
buildToolsVersion "25.0.2"

defaultConfig {
applicationId "com.github.learn.recyclerviewutils"
minSdkVersion 14
targetSdkVersion 24
targetSdkVersion 25
versionCode 104
versionName "1.0.4"
archivesBaseName = "recyclerviewutils-$versionName"
Expand All @@ -28,7 +28,7 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.github.johnpersano:supertoasts:1.3.4@aar'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:cardview-v7:25.2.0'
compile("com.wang.avi:library:2.1.3") {
exclude group: 'com.android.support'
}
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.android.tools.build:gradle:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -27,11 +27,11 @@ task clean(type: Delete) {
}

subprojects {
ext.compileSdkVersion = 24
ext.buildToolsVersion = '24.0.2'
ext.supportLibrariesVersion = '24.2.1'
ext.compileSdkVersion = 25
ext.buildToolsVersion = '25.0.2'
ext.supportLibrariesVersion = '25.2.0'
ext.minSdkVersion = '14'
ext.targetSdkVersion = '22'
ext.targetSdkVersion = '25'

ext.ageraLibrariesVersion = '1.1.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
public class UnRecyclableViewHolder extends RecyclerView.ViewHolder{
public UnRecyclableViewHolder(View itemView) {
super(itemView);
setIsRecyclable(false);
// todo it's bug
//setIsRecyclable(false);
}
}

0 comments on commit 4ec70c6

Please sign in to comment.