Highlighted

Change runtimeDPI at runtime

New Here ,
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

141

Likes

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

Change runtimeDPI at runtime

New Here ,
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

142

Likes

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
Sep 25, 2015 0

Have something to add?

Join the conversation