Arranged coding style.
Updated the target SDK version to 18.

On my ASUS MeMO Pad HD7 (Android 4.2.2), Android drew a black square
instead of a disc under targetSdkVersion="18". This patch also fixes
this bug.
Refactored to cache Paint objects.