datesList.setAdapter(new ArrayAdapter<DateTime>(this, R.layout.date_item, dates)
{
@Override
public DateTime getItem(int position) {
final int basePosition = Integer.MAX_VALUE;
final DateTime baseDate = DateTime.now().plusDays(1);
final int delta = basePosition - position;
return baseDate.minusDays(delta);
}
@Override
public int getCount() {
return Integer.MAX_VALUE;
}
});