Fix AndroidManifest and clean up build.gradle.
Various plot fixes.
Remove knowledge of the adapter from the painter.