o programa nao reconhece o item.xml ta bugando esse item, alguem saberia resolver? Segue o codigo:
@Override
public View getView(int posicao, View convertView, ViewGroup parent) {
View view = activity.getLayoutInflater().inflate(R.layout.item, null);
Aluno aluno = alunos.get(posicao);
if (posicao % 2 == 0) {
view.setBackgroundColor(activity.getResources().
getColor(R.color.linha_par));
}
TextView nome = (TextView) view.findViewById(R.id.nome);
nome.setText(aluno.toString());
Bitmap bm;
if (aluno.getFoto() != null) {
bm = BitmapFactory.decodeFile(aluno.getFoto());
} else {
bm = BitmapFactory.decodeResource(activity.getResources(),
R.drawable.noimage);
}
bm = Bitmap.createScaledBitmap(bm, 100, 100, true);
ImageView foto = (ImageView) view.findViewById(R.id.foto);
foto.setImageBitmap(bm);
return view;
}