SetMaxRecycledViews to 20 default on tangram3.

This commit is contained in:
MikeAfc
2019-03-22 11:44:01 +08:00
parent 57c98b4058
commit ea09c829ec
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ org.gradle.jvmargs=-Xmx1536M
GROUP=com.alibaba.android
ARTIFACT=tangram
VERSION=1
VERSION_NAME=3.3.6
VERSION_NAME=3.3.7
PACKAGING_TYPE=aar
systemProp.compileSdkVersion=26
systemProp.targetSdkVersion=26
@@ -182,6 +182,7 @@ public class PojoGroupBasicAdapter extends GroupBasicAdapter<Card, BaseCell> {
int newType = mTypeId.getAndIncrement();
mStrKeys.put(stringType, newType);
mId2Types.put(newType, item.stringType);
mLayoutManager.getRecyclerView().getRecycledViewPool().setMaxRecycledViews(newType, 20);
}
return mStrKeys.get(stringType);
}