tags:

views:

305

answers:

1

I want do set size (in px) of dialog based on screen resolution, so I have to set dialog size programatically during runtime.

Dialog layout is defined in xml with all standard views, so it would be nice to have better way to set dialog size than override-in top view's onMeasure(...).

Thanx

(Android 1.5 SDK)

A: 

I would suggest reading Google's Dev Guide on supporting multiple screen sizes.

http://developer.android.com/guide/practices/screens%5Fsupport.html

Using pixels for view sizes is a bad idea.

Eclipsed4utoo