FOR CONVENIENCE, ALL CONTENT IS PLACED IN A SINGLE BLOCK. THE EXTENSION IS SIMPLE AND UNDERSTANDABLE.
Block Parameters Breakdown:
container β The layout component (VerticalArrangementorHorizontalArrangement) where cards will be rendered.
imagesList β Global list variable containing image URLs (e.g., get global listImages).
titlesList β Global list variable containing card titles (e.g., get global listTitles).
descriptionsList β Global list variable containing card descriptions (e.g., get global listDescriptions).- βοΈ isHorizontal β Scroll orientation:
truefor horizontal scrolling;falsefor vertical scrolling.
cardWidthPercent β Card width as a percentage of the screen width. 0= wrap content;80-90= fixed card width.
cardHeightPercent β Card height as a percentage of the screen height. 0= auto-adjust height based on content.
cardCornerRadius β Corner rounding radius of the card frame in px (recommended: 15β20).
cardElevation β 3D shadow floating height in dp (recommended: 15β25for a pronounced 3D effect).
imageWidthPercent β Image width in % inside the card. 0= match card width.
imageHeightPercent β Image height in % relative to screen. 0= auto-calculated height.
imageCornerRadius β Corner rounding radius specifically for the image view in px (recommended: 10β15).
cardBgColor β Background color of the card (App Inventor color block).
buttonColor β Background color for the card buttons.
textPosition β Text position relative to the image:
0β Text below image1β Text to the left of image2β Text to the right of image3β Text above image
btn1Visible / btn2Visible / btn3Visible β Set trueto display the button;falseto hide it.
btn1Text / btn2Text / btn3Text β Text labels for the buttons (e.g., βDetailsβ, βBuyβ, βDeleteβ).
Handling Button Clicks (when CardViewVG.OnCardButtonClicked):

buttonId β ID number of the pressed button (1,2, or3).
cardIndex β Index position of the clicked card (starts at 0).
cardTitle β Title string of the card where the click occurred.
Automatic Pagination (Infinite Scroll / Lazy Loading)
Batch Rendering: Cards are no longer generated all at once. When executed, only the first 10 cards are rendered immediately.
Auto-Trigger on Scroll: As the user scrolls near the end of the view (within ~300px of the edge), the extension automatically loads the next batch of 10 cards (11β20, 21β30, etc.).
High Performance: Keeps the app responsive and smooth, preventing memory overflows and UI freezes even when passing datasets of 100+ items.
Fully Automated: No manual scroll-tracking logic needed inside App Inventor blocks β the infinite scroll listener is fully handled under the hood.
com.cardviewvg_v3.aix (19.8 KB)
The extension was created with the help of: FAST





