示例#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);
 }
示例#2
0
 public void setOnZoomOutClickListener(OnClickListener listener) {
   mZoomOut.setOnClickListener(listener);
 }
示例#3
0
 public void setOnZoomInClickListener(OnClickListener listener) {
   mZoomIn.setOnClickListener(listener);
 }
示例#4
0
 @Override
 public boolean hasFocus() {
   return mZoomIn.hasFocus() || mZoomOut.hasFocus();
 }
示例#5
0
 public void setIsZoomOutEnabled(boolean isEnabled) {
   mZoomOut.setEnabled(isEnabled);
 }
示例#6
0
 public void setIsZoomInEnabled(boolean isEnabled) {
   mZoomIn.setEnabled(isEnabled);
 }