MiG InfoCom AB
forcedSize, forcedSize, forcedSize
);
dateArea.addActivityLayout(layout);
dateArea.addDecorator(dateArea.new ActivityViewDecorator(70));
As you see we also had to add an ActivityLayout.
Otherwise the ActivityView would not get laid out in the
grid, and thus be invisible. We also set the min, preferred
and max size to 16 pixels. The size is referring to the
secondary dimension (vertical here) since the start and size
in the primary dimension is depending on the date range of
the Activity.
What if we want the activity to horizontally (the primary
dimension) be rounded to a full day, so that it would be more
like a list in every day cell? We just visually round it, or
rather set a DateRangeRounder in the
TimeBoundsLayout.
BoundaryRounder dayRounder = new BoundaryRounder(DateRangeI.RANGE_TYPE_DAY);
layout.setVisualDateRangeRounder(dayRounder);
MiG Calendar Getting Started Guide Page 22 / 31
Kommentare zu diesen Handbüchern