Removing unused imports.
Fixing an issue with getting dimension values on Android.