Beispiel #1
0
 /*
  * Sets how fast you get zoom events when the user holds down the
  * zoom in/out buttons.
  */
 public void setZoomSpeed(long speed) {
   mZoomIn.setZoomSpeed(speed);
   mZoomOut.setZoomSpeed(speed);
 }
Beispiel #2
0
 public void setOnZoomOutClickListener(OnClickListener listener) {
   mZoomOut.setOnClickListener(listener);
 }
Beispiel #3
0
 public void setOnZoomInClickListener(OnClickListener listener) {
   mZoomIn.setOnClickListener(listener);
 }
Beispiel #4
0
 @Override
 public boolean hasFocus() {
   return mZoomIn.hasFocus() || mZoomOut.hasFocus();
 }
Beispiel #5
0
 public void setIsZoomOutEnabled(boolean isEnabled) {
   mZoomOut.setEnabled(isEnabled);
 }
Beispiel #6
0
 public void setIsZoomInEnabled(boolean isEnabled) {
   mZoomIn.setEnabled(isEnabled);
 }