java - Real size of Android dialog -
how can know real size of custom dialog box specified "fill_parent" measures?
explanation:
i have xml custom dialog box. w/h sizes "fill_parent". android shows cute dialog box lesser x/y of screen. i'd know exact size of dialog after shown.
thanks.
each view has 2 pairs of size values.
one pair getmeasuredwidth() , getmeasuredheight(), value describes how big specific widget wants be.
second pair getwidth() , getheight(), called drawable width , drawable height, values describe size of widget after drawing.
keep in mind padding well.
hope helps, let me know if need more assistance.
Comments
Post a Comment