Methods Summary |
---|
private void | fade(int visibility, float startAlpha, float endAlpha)
AlphaAnimation anim = new AlphaAnimation(startAlpha, endAlpha);
anim.setDuration(500);
startAnimation(anim);
setVisibility(visibility);
|
public boolean | hasFocus()
return mZoomIn.hasFocus() || mZoomOut.hasFocus();
|
public void | hide()
fade(View.GONE, 1.0f, 0.0f);
|
public boolean | onTouchEvent(android.view.MotionEvent event)
/* Consume all touch events so they don't get dispatched to the view
* beneath this view.
*/
return true;
|
public void | setIsZoomInEnabled(boolean isEnabled)
mZoomIn.setEnabled(isEnabled);
|
public void | setIsZoomOutEnabled(boolean isEnabled)
mZoomOut.setEnabled(isEnabled);
|
public void | setOnZoomInClickListener(OnClickListener listener)
mZoomIn.setOnClickListener(listener);
|
public void | setOnZoomOutClickListener(OnClickListener listener)
mZoomOut.setOnClickListener(listener);
|
public void | setZoomSpeed(long speed)
mZoomIn.setZoomSpeed(speed);
mZoomOut.setZoomSpeed(speed);
|
public void | show()
fade(View.VISIBLE, 0.0f, 1.0f);
|