Code example for SimpleCursorAdapter

Methods: newView

0
		} 
 
		@Override 
		public View newView(Context context, Cursor cursor, ViewGroup parent) {
 
			View view = super.newView(context, cursor, parent);
			ViewHolder viewholder = new ViewHolder(view);
			view.setTag(viewholder);
			return view;
		} 
 
		@Override 
		public void bindView(View view, Context context, Cursor cursor) {
 
			ViewHolder viewholder = (ViewHolder) view.getTag();
 
			String mimetype = cursor.getString(cursor.getColumnIndexOrThrow(Audio.Media.MIME_TYPE));
 
			if (mimetype == null) {
				mimetype = "audio/";
			}