Created
January 23, 2014 06:38
-
-
Save chukitow/8573934 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public View getView(int position, View convertView, ViewGroup parent) { | |
| // TODO Auto-generated method stub | |
| View rowView = convertView; | |
| Alumno alumno = getItem(position); | |
| AlumnoWrapper wrapper; | |
| if(rowView == null) | |
| { | |
| LayoutInflater inflater = context.getLayoutInflater(); | |
| rowView = inflater.inflate(R.layout.alumno_item, null); | |
| wrapper = new AlumnoWrapper(rowView); | |
| rowView.setTag(wrapper); | |
| } | |
| else | |
| { | |
| wrapper = new AlumnoWrapper(rowView); | |
| } | |
| wrapper.getTxtNcuenta().setText(String.valueOf(alumno.getNcuenta())); | |
| wrapper.getTxtNombre().setText(alumno.getNombre()); | |
| return rowView; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment