When declaring a FirebaseListAdapter you can use a view to show the
data within the ListView to which the adapter is set. But when placing a TextView for example here.
Firebase cursosRef = rootRef.child("NRC");
FirebaseListAdapter<String> adapterFire = new FirebaseListAdapter<String> (this,String.class,android.R.layout.simple_list_item_1,cursosRef) {
@Override
protected void populateView(View view, String s, int i) {
TextView text = (TextView)view.findViewById(R.id.text1);
text.setText(s);
}
};
}
The layout that goes inside the findViewById parameters ... In what part of the XML should I create it?