@@ -0,0 +1,2413 @@
+%0Apackage com.uwetrottmann.shopr.adapters;%0A%0Aimport android.content.Context;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.View.OnClickListener;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ArrayAdapter;%0Aimport android.widget.ImageButton;%0Aimport android.widget.ImageView;%0Aimport android.widget.TextView;%0Aimport android.widget.Toast;%0A%0Aimport com.uwetrottmann.shopr.R;%0Aimport com.uwetrottmann.shopr.model.Item;%0A%0Apublic class ItemAdapter extends ArrayAdapter%3CItem%3E %7B%0A%0A    private static final int LAYOUT = R.layout.item_layout;%0A%0A    private LayoutInflater mInflater;%0A%0A    public ItemAdapter(Context context) %7B%0A        super(context, LAYOUT);%0A        mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);%0A    %7D%0A%0A    @Override%0A    public View getView(int position, View convertView, ViewGroup parent) %7B%0A        ViewHolder holder;%0A        if (convertView == null) %7B%0A            convertView = mInflater.inflate(LAYOUT, null);%0A%0A            holder = new ViewHolder();%0A            holder.picture = (ImageView) convertView.findViewById(R.id.imageViewItemPicture);%0A            holder.name = (TextView) convertView.findViewById(R.id.textViewItemName);%0A            holder.buttonLike = (ImageButton) convertView.findViewById(R.id.imageButtonItemLike);%0A            holder.buttonDislike = (ImageButton) convertView%0A                    .findViewById(R.id.imageButtonItemDislike);%0A%0A            convertView.setTag(holder);%0A        %7D else %7B%0A            holder = (ViewHolder) convertView.getTag();%0A        %7D%0A%0A        Item item = getItem(position);%0A        holder.name.setText(item.name());%0A        holder.buttonLike.setOnClickListener(new OnClickListener() %7B%0A            @Override%0A            public void onClick(View v) %7B%0A                Toast.makeText(v.getContext(), %22Liking this item%22, Toast.LENGTH_SHORT).show();%0A            %7D%0A        %7D);%0A        holder.buttonDislike.setOnClickListener(new OnClickListener() %7B%0A%0A            @Override%0A            public void onClick(View v) %7B%0A                Toast.makeText(v.getContext(), %22Not liking this item%22, Toast.LENGTH_SHORT).show();%0A            %7D%0A        %7D);%0A%0A        holder.picture.setImageResource(R.drawable.armani);%0A%0A        return convertView;%0A    %7D%0A%0A    static class ViewHolder %7B%0A        ImageView picture;%0A        TextView name;%0A        ImageButton buttonLike;%0A        ImageButton buttonDislike;%0A    %7D%0A%0A%7D%0A

Add item adapter, for now only using sample picture.