RecyclerList Modified

This is the modified version of the RecyclerList extension made by @zainulhassan

Here you can find the orginal extension

I have fixed two things in this extension

The first thing is added is Page / Item no
Now when you use snap-helper with linear or page snapper you can get the page or item no
Untitled

The second thing which is fixed is ,
In original extension when you use horizontal layout the width of the item is fill parent automatically even if you set automatic with or fix width,
Now it works with fixed width.

RecyclerList.aix (126.0 KB)

For documentation ,
Visit : [F/OS] Recycler List View - Render larger data sets efficiently using `RecyclerView` for AppInventor & Distros - Extensions - Kodular Community

10 Likes

You might send a pull request on that GitHub Repository. So we can learn better about changes.

1 Like

Great idea soon i will make it upload in github

1 Like

Is it possible to add an:

GetComponentByUniqueId block, where the id is the unique ID generated in the Bind Event, in order to work with (set properties) a dynamically generated component like at label (which doesn't have a click event )

I am currently having to generate a list of all the components created in root in order to "get at it".

1 Like

I dont have old system , i will install everything and try tonight

1 Like

RecyclerView.aix (126.3 KB)

Just made it , you can check here

1 Like

Thank you, will test out and report back.

2 Likes

GetComponentByUniqueId

Works as expected, many thanks
:+1:

Example here:

2 Likes

Finding I need a "clear" function otherwise I am getting a duplicated recyclerview behind the latest one.

There appear to be lots of suggestions here

Can you try ,
Set data to emplt list
NotifyDataSethanged

And new procedure

The one combination of blocks I did not try! It works :slight_smile:

image

Thank you.

1 Like

Added ResetRecyclerview function for convenience
Which does same as NotifyDataSetChanged+Data empty list

RecyclerView2.0.aix (125.5 KB)

3 Likes

4 posts were merged into an existing topic: Paid:comment,like system

Hlo anyone can help pls

The issue is After clicking on a cardview i have to change the Stroke view of the cardiview which is clicked and other all set to Stroke 0

I have try it to do with Refresh the list but it is very slow and app become laggy



i have tried these blocks
pls anyone

If you were using MIT AppInventor we might be able to provide more help...

From what I can see you are setting the "clicked" changes to strokeWidth in the bindview, should this be in your onClicked event ?

If i m refreshing the list so it should be in bind view

You shouldn't need to do that. It is possible to change the properties of elements in the recyclerlist (e.g. the stroke...) without having to reload the entire recyclerlist again. I have done this in the distant past, and provided an example 9 posts up (properties are changed in the WebGotText event based upon data returned from a firebase project.).

This is correct for that card or elemet that is clicked , i have to make changes on other cards also.
Read this Carefully pls.
The issue is After clicking on a cardview i have to change the Stroke view of the cardiview which is clicked and other all set to Stroke 0

Yes, I read it the first time. Iterate over all the cardviews to set to 0, then set the clicked cardview to 2

Brother your not understanding the issue

Let there is 25 Cards Generated by Recyler list
then user click ok 2nd card so it stroke will increase from 0 to 2 ,
the main issue is
if same time user click on 10th card so i have to set 10th card storke to 2 and 2nd card storke to 0 .