I just copied it from iOS method. It doesn't work without setDesignResolutionSize.