Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13408] Android: ListView Enhancement: Update itemCount automatically

GitHub Issuen/a
TypeStory
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterPing Wang
AssigneeAshraf Abu
Created2013-04-05T19:18:09.000+0000
Updated2016-06-30T04:37:19.000+0000

Description

About the crash which fixed in this [commit](https://github.com/hieupham007/Titanium_Mobile/commit/6a099fe4dd0ca9630967a08b98808d51b5b38628), we should think about one way to automatically update itemCount, eg the getItemCount() method return the size of the data arraylist. So whenever the adapter is trying to notify data change, the data and the itemCount are always sync/consistent. This issue also forces the getSectionCount() method to be called in UI thread.

Comments

No comments

JSON Source