OrientationListener for Gluon

Viewed 190

Some Questions to Orientations with Gluon:

Can you detect an Orientation switch with Gluon?
My current way of detecting is a size listener on the GlassPane, which is not ideal.

Can have two different FXML/Views per Orientation?
Normal switching when the orientation changes = easy
BUT

  • what about switching to the correct view when switchView() is called e.g. from NavigationDrawer? (switchView cannot be overriden since it is final...)
  • starting the app in landscape mode cannot be handled in any nice way, can it?

The best way would be if Gluon supported View switching dependant on orientation on their own (just implement it in the switchView method).

0 Answers
Related