How do you load text and images into RecyclerList View from Firebase? (Help)

It is not clear as to what you want your output to look like. Write out or show what you want.

Do you want to show all the Headings first e.g. Attitude, Friendship etc. and for the user to select one, or do you want to show everything, so all the first items from Attitude, Friendship etc., then all the second items and so on.

It should look like this.

Is "status" the number in each category, so all the number ones, or all the number twos? I cannot translate the texts in your image.


This is the name and photo in it.

This type of json file is in it
quotes_categories.json (9.0 KB)

OK, we are getting somewhere. When a user presses on one of the categories, what do you want them to see, all of the numbered items...without images, or just one image at the top for the category?

After clicking on a specific category, the data in the data node should appear on screen 2, not the image, and the category name that accompanies that data will appear in label 1 of screen 2.

Begs the question as to why you need to use recyclerlist at all ?

You probably do not need a second screen, this could all be done on one screen...

I have used dynamic list view before, there were some issues while loading large data, due to that I have used recycle, I am also using second screen for this purpose.

But you won't be loading large data, each category only has 10 elements...

You may want to reorganise you data on firebase, so that you have a separate node for categories and their images:

|
- Friendship:imageurl
- Attitude:imageurl
...
1 Like

Yes, there are 10 elements now, I want to include more than this in the future,

How much more?

This is a quote app, 25 categories need to be added, and at least 1000 quotes need to be added in each category.

OK, so, for example, the category Friendship will have 1000 quotes in your final app.

What is your user going to do with that ? Probably scroll the first 25 or so then give up / go back.... on their second visit to the category quotes, they will be presented with all the quotes they have already read? Does the quote list need to be randomised / filtered ?

Just trying to get you to think outside the box on this one.

No, new quotes will be added daily, there will be a search option and more editing features will be added for users, e.g. photos and share quotes

I am tempted to work up an example for you if I get time today...

Make sure to remember, I will wait eagerly, I hope.

Is the intention for these to appear at the top of the list, so a sort of date order, newest first?

Yes, that would be great.

How do you intend to add new quotes to a category in Firebase ?

We are thinking of adding it through the menu or through the admin app, work is also underway on that.