在Android中我如何判断时间轴上的日期

我要做的时间轴效果大概是这样的
9-8 | 12:01:23 获得1元
9-9 | 12:01:23 获得1元
空格| 12:02:23 获得2元
空格| 12:03:23 获得1元
空格| 12:04:23 获得1元
9-10| 12:01:23 获得1元
我如何判断日期隐藏同一日期,当日期不同时如何分开显示
部分代码
public View getView(final int postion, View contentView, ViewGroup arg2) {
// TODO Auto-generated method stub

    if (contentView == null)
    contentView = LayoutInflater.from(mContext).inflate(R.layout.record_item, null);
    //获取时间 月/日
    TextView time = (TextView) contentView.findViewById(R.id.time);
    String activity_time = recordInfos.get(postion).getExpiry_date().split(" ")[0].substring(5);

    time.setText(activity_time);
    //获取时间00:00:00
    TextView chanping_time = (TextView) contentView.findViewById(R.id.chanping_time);
    String chantime = recordInfos.get(postion).getExpense_time().split(" ")[1].substring(0);
    chanping_time.setText(chantime);

应当是一个list集合。
你在适配时间轴的时候判断list中的数据就行了。