Still-learning:
yna
There’s no functions on when card view click yet.
dora_paz
(Dora)
May 16, 2022, 7:46am
#25
Did it work with 10 items or less ?
Yeps working good, no crashing, I wonder how am I able to load 130 there
dora_paz
(Dora)
May 16, 2022, 3:13pm
#27
Do you use airtable or … ?
1 Like
dora_paz
(Dora)
May 17, 2022, 5:06am
#29
Then try to load as user scroll
Hello Everyone
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
[blocks(1)]
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
Note
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
I used
Mysql snippet and php file by @Taifun
Dynamic components extension by @yusufcihan
Vertical Scroll handler …
or use
[banner]
[icon] Recycler List View
An extension for rendering larger data sets efficiently using RecyclerView for AppInventor & Distros.
Documentation
Events
[on_create_view]
Event raised to create UI. Don’t bind any data to the UI here.
Parameters
root : AndroidViewComponent
[on_bind_view]
Event raised to bind data to UI.
Parameters
root : AndroidViewComponent
position: Current position.
Functions
[initialize]
Initiali…
How to use this though?
https://community.kodular.io/t/f-os-recycler-list-view-render-larger-data-sets-efficiently-using-recyclerview-for-appinventor-distros/179434
It’s crashing even if 32 Items
dora_paz
(Dora)
May 18, 2022, 3:08pm
#32
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
1 Like
Future_Applications:
your blocks?
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)
Update:
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.
[image]
Also setting in text also simplified too much with this extension like this
[image]
just test …
I mean is how to get the airtable data using this Recycler List View
dora_paz
(Dora)
May 20, 2022, 8:03am
#36
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(1)]
Blocks used Related to spreadsheet is,
[image]
[image]
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
dora_paz
(Dora)
May 20, 2022, 8:22am
#42
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
1 Like