There’s no functions on when card view click yet.
Did it work with 10 items or less ?
Yeps working good, no crashing, I wonder how am I able to load 130 there
Do you use airtable or … ?
Then try to load as user scroll
I made this simple guide to show you how you can load more items as user scrolls.So let’s get started.
I am using
Dynamic Components Extension from @yusufcihan and
Scroll Handler Extension from Colin Tree
In these blocks there is a variable called number. We will store a number in that variable that will be updated after creating items.
There is another variable called items. That variable will represent how much data do you want to show at a time. In my case I…
Hi gyz i present you my another powerful app for custom data loading on user scroll(concept of RecyclerView) from Airtable, Firebase and mysql under jugard series project 6
i did not focus on code optimization so that everyone can understand it easily
I’ll keep on updating the guide for more convenience and try to make it easily understandable
methods and extensions used
Mysql snippet and php file by @Taifun
Dynamic components extension by @yusufcihan
Vertical Scroll handler …
[icon] Recycler List View
An extension for rendering larger data sets efficiently using RecyclerView for AppInventor & Distros.
Event raised to create UI. Don’t bind any data to the UI here.
root : AndroidViewComponent
Event raised to bind data to UI.
root : AndroidViewComponent
position: Current position.
How to use this though?
It’s crashing even if 32 Items
As I said without seeing anyblocks we can not tell what might cause the problem. See for example… airtable as database 1200 rows, 5 columns … no crash
Tested with 1200 rows, 5 colums works very fast, took 6-7 seconds to load database
if possible have a look at it
See now, blocks are almost reduced into simple one… especially creating labels and setting text on each label was did with just single procedure.
Based on this design labels will auto generate according to the col size…
RecyclerList1(1).aia (309.5 KB)
I have used a new of way creating labels based on gsheet col count. You no need to mention how many to create by number.
Also setting in text also simplified too much with this extension like this
just test …
I mean is how to get the airtable data using this Recycler List View
Get all rows. Response is in json, use web component and dictionary blocks to get columns
No way of hanging with airtable, runs as much as smoother… I just tested with 500 data’s, loads created view in less than 5 sec , upon refresh created view even more less than previous value
Just see this
Fantastic effect of Recycler View
And my blocks
Blocks used Related to spreadsheet is,
I don’t understand, do you mind teaching it to me?
I looked up for the blocks and I don’t understand it no matter how hard I try
It keeps crashing if the data is more than 50, this is my blocks
Forgot to show the block, When the Screen Initialized, I call Spreadsheet 1. Get Column, Column Name: Title, and Max Record: 1200
How am I able to get larger items in 3 seperated Columns “Title”, “ID”, and “Date”? because if I will use the common method, it lags and crashes the app
Try this way, create another global variable for example thumbnails to create and empty list. Before creating list view with images for each item in list global id, add items to global thumbnails using call get thumbnail from videoID where videoId is get item. Once that list is created then create List View with Image and get images from global thumbnails