package teammemes.tritonbudget;

import teammemes.tritonbudget.db.TranHistory;
import java.util.ArrayList;

import android.view.View;
import android.view.ViewGroup;
import android.view.LayoutInflater;

import android.content.Context;

import android.widget.ArrayAdapter;
import android.widget.TextView;

import org.w3c.dom.Text;

/**
 * Created by Zi Y Liu on 3/6/17.
 * Custom ArrayAdapter for members of checkout
 */

public class Checkout_Adapter extends ArrayAdapter<TranHistory>{
    public Checkout_Adapter(Context context, ArrayList<TranHistory> Item_Object) {
        super(context, 0, Item_Object);
    }

    public View getView(int position, View conView, ViewGroup ItemsGrouping) {

        //retrieve the data for food_item at certain position
        TranHistory item = getItem(position);

        if (conView == null) {
            conView = LayoutInflater.from(getContext()).inflate(R.layout.content_checkout, ItemsGrouping, false);
        }

        //go into xml files and change id names

        TextView itemName = (TextView) conView.findViewById(R.id.COItemName);
        TextView itemQuantity = (TextView) conView.findViewById(R.id.COItemQuantity);
        TextView itemPrice = (TextView) conView.findViewById(R.id.COItemPrice);
        TextView multItemPrice = (TextView) conView.findViewById(R.id.COItemTPrice);


        itemName.setText(item.getName());
        itemQuantity.setText(item.getQuantity());
        itemPrice.setText(String.valueOf(item.getCost()));
        multItemPrice.setText(String.valueOf(item.getQuantity()*item.getCost()));

        return conView;
    }
}

@@ -604,24 +604,38 @@
 ct);%0A    %7D%0A%0A
+    @Override%0A
     public V

Update Checkout_Adapter.java