Make common code similar; bump target sdk to 21; provide hint, inputtype for text field.