How scrolling UI works
Could not find any good resources from Google.
I'm wondering, how graphical items that scroll, such as a web browser, WordPad, etc can display a large collection of data efficiently without wasting memory.
The simplest method I can think of is drawing all the contents (say a webpage) on an off-screen plane, and only copy the region that is visible. As the user scrolls, the new region is calculated, and transported again. I don't think this will work if the content is extremely huge, like a 40-50 "page" webpage. This will consume memory.
All this while, I just know how to use an existing widget from a library, without giving much thought on what's happening inside.
Any answers to my scrolling question (how to efficiently display a scrolling content), or pointers to good resources for this?)
Thanks in advance.
Andy
__________________
“Great works are performed, not by strength, but by perseverance.”
“Marriage is a three rings circus: engagement rings , wedding rings and sufferings.”
|