Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

Change runtimeDPI at runtime

$
0
0

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


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>