Package totalcross.ui

Class DynamicScrollContainer

  • All Implemented Interfaces:
    Scrollable

    public class DynamicScrollContainer
    extends ScrollContainer

    DynamicScrollContainer is a specialized type of Scroll Container intended for high performance
    where hundreds or thousands of views need to be displayed in a scrollable list.

    The performance is achieved by only every having the visible views on the screen occupy memory at a given time.
    When a view is scrolled out of the visible area of the scroll container it is immediately destroyed and removed from memory.
    When a view is scrolled into the visible area of the scroll container it is created if not already visible.

    Views are created by a DynamicScrollContainer.DataSource

    Only vertical scrolling is supported.