mirror of
https://github.com/alibaba/Tangram-Android.git
synced 2026-10-29 06:46:31 +08:00
SetMaxRecycledViews to 20 default on tangram3.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user