Skip to content

Commit 32a9bef

Browse files
committed
Cleanup
Signed-off-by: Alex Saveau <[email protected]>
1 parent 87163f9 commit 32a9bef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

database/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ recycler.setAdapter(mAdapter);
284284
Like before, we get a custom RecyclerView populated with data from Firebase by setting the properties to the correct fields.
285285

286286
## Using FirebaseUI with indexed data
287+
287288
If your data is [properly indexed](https://firebase.google.com/docs/database/android/structure-data#best_practices_for_data_structure), change your adapter initalization like so:
288289

289290
For a `RecyclerView`, use `FirebaseIndexRecyclerAdapter` instead of `FirebaseRecyclerAdapter`:
@@ -302,7 +303,8 @@ new FirebaseIndexListAdapter<Chat>(this, Chat.class, android.R.layout.two_line_l
302303

303304
`keyRef` is the location of your keys, and `dataRef` is the location of your data.
304305

305-
### A note on ordering:
306+
### A note on ordering
307+
306308
The order in which your receive your data depends on the order from `keyRef`, not `dataRef`:
307309
```json
308310
{

0 commit comments

Comments
 (0)