Layouts: Add left/right duplicates for start/end properties.

This is necessary for API level 16, as suggested by android-lint.
Remove some unused variables and initializations.

As suggested by the Android Studio inspection tool.
build.gradle: Remove the packagingOptions hack for jOOQ.

Because this project doesn't use jOOQ.
Remove unnecessary imports.