code: public void setZoomInFirst(boolean zoomInFirst) {
          this.removeAllViews();
          LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
          if (zoomInFirst) {
              this.addView(buttonZoomIn, layoutParams);
              this.addView(buttonZoomOut, layoutParams);
          } else {
              this.addView(buttonZoomOut, layoutParams);
              this.addView(buttonZoomIn, layoutParams);
          }
      }
docs: For horizontal orientation, "zoom in first" means the zoom in button will appear on top of the zoom out button.<br/>
  For vertical orientation, "zoom in first" means the zoom in button will appear to the left of the zoom out
  button.
  
  @param zoomInFirst zoom in button will be first in layout.