0
I have a normal listview that lists the names of my users.
And I would like disabled users to have the grey background of the list item. How to do this?
public class Usuario {
private String nome;
private String endereco;
private Boolean ativo;
//construtor
// getters e setters
}
That is, if active is true, leave normal. If false, leave gray.
How do I change the color of the List View item if it is disabled?
Are you using
Adapter
when completing Listview?– Felipe Douradinho
Arrayadpater himself. I didn’t perosnalize mine.
– user17245
So, from what I’ve been reading,
override
in the "isEnabled" function of theBaseAdapter
, i never tried!– Felipe Douradinho