Ok, so the extra white space was because the ViewPager, apparently you cannot set wrap content for your height: https://stackoverflow.com/a/8532550/641738
Instead, I just calculated a few percentages based on the static width/height of all my slides and set the wrapper accordingly. I could have just set the slide dimensions in their respective dp layout folders, but that seemed like a hassle. Seems to work fairly well on a few handheld devices so far as long as all the slides are the same dimensions. The percentages were somewhat trial and error:
// Check the display and make the necessary adjustments for Portrait mode
if(display.getRotation() == Surface.ROTATION_0 || display.getRotation() == Surface.ROTATION_180) {
double width = display.getWidth() * 0.93;
double adjustedHeight = width * 0.85;
wrapLayoutParams = new LinearLayout.LayoutParams((int)width, (int)adjustedHeight);
}
else {
double height = display.getHeight() * 0.73;
double adjustedWidth = height * 1.15;
wrapLayoutParams = new LinearLayout.LayoutParams((int)adjustedWidth, (int)height);
}
slideWrap.setLayoutParams(wrapLayoutParams);