就是 两列的ListView 自己琢磨的 主要是Adapter:
public class GoodsListDoubleAdapter extends BaseAdapter { protected LayoutInflater mInflater = null; protected Context mContext; protected boolean fromScore; public ArrayList dataList = new ArrayList(); public GoodsListDoubleAdapter(Context c, ArrayList dataList, boolean fromScore) { mContext = c; mInflater = LayoutInflater.from(c); this.dataList = dataList; this.fromScore = fromScore; } public void addItemList(List<GoodsBean> itemInfoList) { dataList.addAll(itemInfoList); this.notifyDataSetChanged(); } @Override public int getCount() { if (dataList.size() % 2 > 0) { return dataList.size() / 2 + 1; } else { return dataList.size() / 2; }