title: How to inverse a view's visibility with bit manipulation
body: <p>I want to inverse the visibility of a view on a SurfaceView upon user click. A click makes the view visible on screen. The next click makes it invisible, and so on.<br>
  I already tried <code>view.setVisibility(Integer.reverse())</code> and <code>view.setVisibility(View.GONE ^ view.getVisibility())</code>, but none of them work. The latter does not even compile.      </p>