Fixed compatibility issues.

Fixed compatibility issues that arose when using Android 4.0 or devices
with lower screen resolutions