Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public View getView(int position, View convertView, ViewGroup parent) {
- // ........... code
- Object example = list.get(position);
- switch ( example.getProfession() )
- {
- case 0:
- //without this line, some non doctors might be set to doctor
- textView.setText("");
- break;
- case 1:
- textView.setText("doctor");
- break;
- }
- // ............ more code
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement