private void doClick() {
    final View view = getView();
    final int[] xy = new int[2];

    view.getLocationOnScreen(xy);
    SelendroidLogger.debug("View reported coordinates: " + xy[0] + "," + xy[1]);
    clickOnScreen(xy[0] + view.getWidth() / 2.0f, xy[1] + view.getHeight() / 2.0f);
  }
If view.isShown() == false, logs why exactly this evaluates to false.
Copied from Android's implementation of View.isShown().
selendroid-server/src/main/java/io/selendroid/server/model/AndroidNativeElement.java