@Override
public View getView(int posicao, View convertView, ViewGroup parent) {
View view = activity.getLayoutInflater().inflate(layout, null);
Aluno aluno = alunos.get(posicao);
if (posicao % 2 == 0) {
view.setBackgroundColor(activity.getResources().
getColor(R.color.linha_par)); //Erro linha_par
}
TextView nome = (TextView) view.findViewById(R.id.nome); // Erro nome do 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.no_image); // Erro no_image
}
bm = Bitmap.createScaledBitmap(bm, 100, 100, true);
ImageView foto = (ImageView) view.findViewById(R.id.foto); //Erro foto do R.id.foto
foto.setImageBitmap(bm);
return view;
}
}