I was wondering if the firebaseUI accepts custom layouts for listview? so if i make a layoutfile and add can i populate it as shown in documents?
e.g
private ListView mListView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Find the ListView
mListView = (ListView) findViewById(R.id.list_view);
/*
* Create a DatabaseReference to the data; works with standard DatabaseReference methods
* like limitToLast() and etc.
*/
DatabaseReference peopleReference = FirebaseDatabase.getInstance().getReference()
.child("people");
// Now set the adapter with a given layout
mListView.setAdapter(new FirebaseListAdapter<Person>(this, Person.class,
R.layout.**MYCUSTOMLISTVIEW**, peopleReference) {
// Populate view as needed
@Override
protected void populateView(View view, Person person, int position) {
((TextView) view.findViewById(android.R.id.**MYCUSTOMTEXTVIEW**)).setText(person.getName());
}
});
}
}