• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Change runtimeDPI at runtime

New Here ,
Sep 25, 2015 Sep 25, 2015

Copy link to clipboard

Copied

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).

TOPICS
Development

Views

195

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines