Beispiel #1
0
 public void initItem(int position, ViewHolder viewHolder) {
   Long time = items.get(position).getLastLoginTime();
   viewHolder.carId.setText(items.get(position).getCarId());
   viewHolder.time.setText(
       time != null ? DateUtils.setTimeDateMinute(items.get(position).getLastLoginTime()) : "");
   viewHolder.phone.setText(items.get(position).getOwnerTel());
   viewHolder.name.setText(items.get(position).getOwnerNickName());
 }
Beispiel #2
0
  public static void main(String[] args) {
    DateUtils dateHelper = DateUtils.getInstance();

    /* Year */
    for (int i = -5; i <= 5; i++) {}
  }