I want to set the size (in pixels) of the dialog box depending on the screen resolution, so I need to set the size of the dialog programmatically at runtime.
The layout of the dialog is defined in xml with all the standard views, so it would be nice to have a better way to set the size of the dialog than the redefined top view onMeasure (...).
(Android 1.5 SDK)
source share