完整内容请查看http://www.zhdoc.net/android/reference/android/widget/ZoomButton.html
ZoomButton
public class ZoomButton
extends ImageButton
implements View.OnLongClickListener
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.widget.ImageView | |||
↳ | android.widget.ImageButton | |||
↳ | android.widget.ZoomButton |
This class was deprecated in API level O.
Use other means to handle this functionality. This widget is merely a simple wrapper around a long-press handler.
此类在API level O版本中已经删除。
使用其他方法来处理这个功能。此widget仅仅是一个简单的包装器,其包装了一个长按操作的处理程序。
This widget provides a simple utility for turning a continued long-press event into a series of clicks at some set frequency. There is no actual 'zoom' functionality handled by this widget directly. Instead, clients of this API should set up an onClickListener
to handle zoom functionality. That click listener is called on a frequency determined by setZoomSpeed(long)
whenever the user long-presses on the ZoomButton.
这个widget提供了一个简单的工具,可以将持续的长按事件转换为一系列的按一定频率的点击。这个widget并不直接实际处理“zoom”的功能。相反,这个API的客户端应该设置一个onClickListener
来处理缩放功能。当用户长按ZoomButton时,按setZoomSpeed(long)
所确定的频率调用该点击监听器。
摘要
继承XML属性 | |
---|---|
From class android.widget.ImageView
| |
From class android.view.View
|
继承常量 |
---|
From class android.view.View
|
继承字段 |
---|
From class android.view.View
|
Public构造方法 | |
---|---|
ZoomButton(Context context) | |
ZoomButton(Context context, AttributeSet attrs) | |
ZoomButton(Context context, AttributeSet attrs, int defStyleAttr) | |
ZoomButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) |
Public方法 | |
---|---|
boolean | dispatchUnhandledMove(View focused, int direction) This method is the last chance for the focused view and its ancestors to respond to an arrow key. |
CharSequence | getAccessibilityClassName() Return the class name of this object to be used for accessibility purposes. |
boolean | onKeyUp(int keyCode, KeyEvent event) Default implementation of |
boolean | onLongClick(View v) Called when a view has been clicked and held. |
boolean | onTouchEvent(MotionEvent event) Implement this method to handle touch screen motion events. |
void | setEnabled(boolean enabled) Set the enabled state of this view. |
void | setZoomSpeed(long speed) Sets the delay between calls to the widget's |
继承方法
完整内容请查看http://www.zhdoc.net/android/reference/android/widget/ZoomButton.html