LucaMs Expert Licensed User Longtime User May 25, 2020 #1 Erel said: Once the items are committed you can add or remove items by modifying CLV directly and calling PCLV. B4X: Copy CustomListView1.InsertAtTextItem(Index, "New Item", "") PCLV.ListChangedExternally PCLV ignores these items. Click to expand... What "PCLV ignores these items." means? Erel said: ScrollView height in Android is limited to 16,777,215 pixels. The exact limit depends on the device scale and the items height. Click to expand... Given this "warning", does this mean that no items are ever deleted? I mean I suppose there is no loading limit... I almost certainly don't have completely clear ideas about this class. I seem to remember that "lazy loading xCLV" prepared N item (Panels) and reused these; for example, the xCLV could show 10 items and N graphic items (previous M, subsequent M) were ready in memory, that this was the optimization, not having all the graphic items (panels) already loaded in memory. But if it is written that "ScrollView height in Android is limited to 16,777,215 pixels" it seems that all the items (panels) are kept in memory, or not? Ultimately, what I'm trying to understand is how to manage database records with a "lazy loading" xCLV or, better, with this new "Preoptimized". Perhaps I have to use db queries with the LIMIT clause and use the "classic" xCLV (?).
Erel said: Once the items are committed you can add or remove items by modifying CLV directly and calling PCLV. B4X: Copy CustomListView1.InsertAtTextItem(Index, "New Item", "") PCLV.ListChangedExternally PCLV ignores these items. Click to expand... What "PCLV ignores these items." means? Erel said: ScrollView height in Android is limited to 16,777,215 pixels. The exact limit depends on the device scale and the items height. Click to expand... Given this "warning", does this mean that no items are ever deleted? I mean I suppose there is no loading limit... I almost certainly don't have completely clear ideas about this class. I seem to remember that "lazy loading xCLV" prepared N item (Panels) and reused these; for example, the xCLV could show 10 items and N graphic items (previous M, subsequent M) were ready in memory, that this was the optimization, not having all the graphic items (panels) already loaded in memory. But if it is written that "ScrollView height in Android is limited to 16,777,215 pixels" it seems that all the items (panels) are kept in memory, or not? Ultimately, what I'm trying to understand is how to manage database records with a "lazy loading" xCLV or, better, with this new "Preoptimized". Perhaps I have to use db queries with the LIMIT clause and use the "classic" xCLV (?).
Erel B4X founder Staff member Licensed User Longtime User May 25, 2020 #2 LucaMs said: What "PCLV ignores these items." means? Click to expand... [B4X] PreoptimizedCLV - Lazy loading extension for xCustomListView This is a cross platform class that extends xCustomListView and makes it "lazier". Lazy loading is explained here: https://www.b4x.com/android/forum/threads/b4x-xui-customlistview-lazy-loading-virtualization.87930/#content and here... www.b4x.com LucaMs said: Given this "warning", does this mean that no items are ever deleted? I mean I suppose there is no loading limit... it seems that all the items (panels) are kept in memory, or not? Click to expand... No. This limitation is really not worth discussing. The ScrollView itself has a length limit. Upvote 0
LucaMs said: What "PCLV ignores these items." means? Click to expand... [B4X] PreoptimizedCLV - Lazy loading extension for xCustomListView This is a cross platform class that extends xCustomListView and makes it "lazier". Lazy loading is explained here: https://www.b4x.com/android/forum/threads/b4x-xui-customlistview-lazy-loading-virtualization.87930/#content and here... www.b4x.com LucaMs said: Given this "warning", does this mean that no items are ever deleted? I mean I suppose there is no loading limit... it seems that all the items (panels) are kept in memory, or not? Click to expand... No. This limitation is really not worth discussing. The ScrollView itself has a length limit.
LucaMs Expert Licensed User Longtime User May 25, 2020 #3 Erel said: The ScrollView itself has a length limit. Click to expand... Yes, I know and this is also what you wrote (ScrollView height in Android is limited to 16,777,215 pixels). I meant a differenti thing, but it doesn't matter, I'll solve. Upvote 0
Erel said: The ScrollView itself has a length limit. Click to expand... Yes, I know and this is also what you wrote (ScrollView height in Android is limited to 16,777,215 pixels). I meant a differenti thing, but it doesn't matter, I'll solve.