public int getPageWidth(Orientation o) { switch (o) { case UIA_DEVICE_ORIENTATION_PORTRAIT: case UIA_DEVICE_ORIENTATION_PORTRAIT_UPSIDEDOWN: return rect.getWidth(); case UIA_DEVICE_ORIENTATION_LANDSCAPELEFT: case UIA_DEVICE_ORIENTATION_LANDSCAPERIGHT: return rect.getHeight(); default: throw new RuntimeException("NI" + o); } }
public int getAddressBarHeigth() { return rect.getY(); }