Mig-infocom MiG Calendar Getting Started Guide Bedienungsanleitung Seite 22

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 31
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 21
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
Illustration 12 With an ActivityDecorator
Seitenansicht 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 30 31

Kommentare zu diesen Handbüchern

Keine Kommentare