public View getCustomView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); View row = inflater.inflate(android.R.layout.simple_list_item_1, parent, false); CategoryItem item = getItem(position); TextView label = (TextView) row.findViewById(android.R.id.text1); label.setText(item.getName()); return row; }