Skip to main content
Participant
September 25, 2015
Question

Change runtimeDPI at runtime

  • September 25, 2015
  • 0 replies
  • 223 views

Hello,

Some of our user are asking for bigger UI elements on our app, while others feel that more info should be contained on a single screen. So instead of trying to do good for all (which is impossible) I've decided to give the user the option to choose between normal and large UI elements.

The whole app is build using 'MultiDPI' based controls, so I can  easily change the size of the entire UI by changing the 'DPI' classification (with a custom runtimeDPIProvider).

The only problem is that the runtimeDPI cannot be changed 'at runtime', it is only used at startup of the app. Is there any way in which I can force the app to recalculate its runtimeDPI?

As a workaround I can ask the user the restart an app, but the times I needed to explain that 'pressing home' isn't closing an app... (quiting the app from code is apparently impossible on iOS).

This topic has been closed for replies.