How to display Firebase data as list in Android

I will explain How you can display your Fire-base data as list in Android studio .

Follow these steps-

1. create an activity in android

Firstly you need to create an activity (java file and xml file ). This activity name is start (name can be your choice) So here is the java and xml code below-

activity_start-

start.java-

 

2. create Another activity –

In third steps you will create a java class which is pass to the list view adapter , As –

surveys.java-

surveys-

In this xml file data will show as a list on your screen –

 

3. create another java class-

4. create a java file in studio-

By this above code Firebase data list will show as a result.

Hope this would work for you.

Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *