Mig-infocom MiG Calendar Getting Started Guide Manual do Utilizador Página 25

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 31
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 24
MiG InfoCom AB
Customizing how Activities Look and Feel
The default installed Decorator that paints the
ActivityViews uses the in the DateArea specified
ActivityViewRenderer (which is an interface). That
renderer can easily be exchanged for something completely
different, but it is a ShapeRenderer by default.
You basically have two choices if you want to customize how
the activities are painted:
1. Provide a custom AShape that looks like you want. This is
the preferred choice for almost any use case. AShapes
have build in support for mouse and key event handling
and DefaultDateArea will support that. How to get the
ShapeRenderer to use your new AShape will be shown
later.
2. Write your own ActivityViewRenderer. This is very
simple to do, but it can be hard to enable user interaction
with the rendered views since it has to be done manually.
Provide your own AShape
Creating an AShape that works and looks good is easy.
Creating one that look equally good in all sizes and aspect
rations is a bit harder since it usually includes setting
conditional visibility on some parts and size/position
MiG Calendar Getting Started Guide Page 25 / 31
Illustration 14: Date area with category filter rows and a Category
Header
Vista de página 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 31

Comentários a estes Manuais

Sem comentários