I\'m trying to determine the real dimension in pixels of some UI elements !
Those elements are inflated from a .xml file and are initialized with dip width and height
Do that:
frame.measure(0, 0); final int w = frame.getMeasuredWidth(); final int h = frame.getMeasuredHeight();
Solved!