Hi Eduardo,
Our documentation are indeed "a bit" lacking in that respect. The best you can probably do today is look at some of our example apps. The simplest one that maps nodes from Firebase to a list view is our
AndroidChat sample.
There are three important parts in this application that work together to map Firebase nodes to a list view:
- Chat.java
This is a simple POJO that defines the fields that are stored for a chat message in Firebase. When you read/write values to Firebase, it will map the fields from the POJO to corresponding properties in the JSON structure. - FirebaseListAdapter.java
This generic class adapts the collection structure that Firebase uses, to one that Android wants to back a ListView. It handles all the heavy-lifting of mapping Firebase's child_* events to an ArrayList. - ChatListAdapter.java
This is a subclass of FirebaseListAdapter and it translates the abstract behavior into a concrete implementation of what we need for our chat application. Most important is its populateView method, which you have to implement to map the fields from our Chat object to the View objects.
We'll definitely be working to improve our documentation in this area. But hopefully the above description and the AndroidChat application itself are enough to get you started. If not, just reach out and I'll be happy to explain more.
Frank