Mig-infocom MiG Calendar Getting Started Guide Manuale Utente Pagina 22

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 31
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 30 31

Commenti su questo manuale

Nessun commento