[TIMOB-18874] Android: Add missing option cacheSize for scrollableViews
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-05-12T04:05:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Android |
Labels | n/a |
Reporter | Chee Kiat Ng |
Assignee | Ashraf Abu |
Created | 2015-05-07T04:19:58.000+0000 |
Updated | 2015-06-01T22:14:07.000+0000 |
Description
On iOS, the cacheSize argument is present, but on Android this is missing. This leads to empty views in some cases that don't get rebuilt correctly after scrolling. Code is tested on SDK 3.5.1.GA Multiple Android versions and works.
PR here for review:
https://github.com/appcelerator/titanium_mobile/pull/6767
Thanks to skoften.
For the test code, test it with cache 1 and cache 5. Note that when set to 5, the image is not recreated. Test code for reference for this pr:-
Will be doing a separate PR for apidocs.
PR for docs: https://github.com/appcelerator/titanium_mobile/pull/6838
Verified. CacheSize is added to android. Checked it using the test case above. Closing. Environment: Appc Studio : 4.1.0.201505071004 Ti SDK : 4.1.0.v20150529013634 CLI : 4.0.1 Alloy : 1.6.0 MAC Yosemite : 10.10.3 Appc npm : 4.0.0 Appc CLI : 4.0.1 Node: v0.10.37