I am working on a Titanium project specifically for Android that involves using a ScrollableView to scroll through numerous views. Each view contains a paragraph or two of text and possibly an image.
My concern is the strain this may put on the CPU if all views are populated at once. To remedy this, I have devised a plan to only display three views within the ScrollableView at any given time.
Here is my proposed solution: each view is numbered from 1 to 10, with the currently active view in bold. The other views are denoted by placeholders. For example, when the user first views the app:
1 2 3 - - - - - - -
As the user scrolls right:
1 2 3 - - - - - - -
Upon scrolling again, view 1 is replaced with view 4 to maintain the pattern.
- 2 3 4 - - - - - -
This process continues as the user interacts with the ScrollableView.
One challenge I am facing is the inability to insert views before existing ones, such as when scrolling left. How should I go about implementing this feature?