I have an adapter for a listview, which extends the base ArrayAdapter. The whole logic of populating a list member is in if blocks. Since there are just 4 fields, it's not a big deal. But what if you have a more complex adapter? Is it a good practice to use ifs for this, or a more elegant solution should be implemented(performance wise)?
Aucun commentaire:
Enregistrer un commentaire