Final edits. Made a boolean edit mode flag and handle rotation. Also set 
windowSoftInputMode in manifest to disable the auto popup of the soft
keyboard.