您的位置:首页 > 移动开发 > Android开发

Android7.0中文文档(API)-- StackView

2017-06-13 16:09 489 查看

完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/StackView.html

StackView

public class StackView

extends

AdapterViewAnimator


java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.widget.AdapterView<android.widget.Adapter>
      ↳android.widget.AdapterViewAnimator
       ↳android.widget.StackView

摘要

继承XML属性



From
class
android.widget.AdapterViewAnimator




From
class
android.view.ViewGroup




From
class
android.view.View


继承常量



From
class
android.widget.AdapterView




From
class
android.view.ViewGroup




From
class
android.view.View


继承字段



From
class
android.view.View


Public构造方法

StackView(Context
context)


StackView(Context
context,
AttributeSet attrs)


StackView(Context
context,
AttributeSet attrs, int defStyleAttr)


StackView(Context
context,
AttributeSet attrs, int defStyleAttr, int defStyleRes)


Public方法

void
advance()

Called by an
AppWidgetHost
in order to advance the current view when it is being used within an app widget.

AppWidgetHost
来调用,当在一个app widget中使用时,以提升当前视图,

CharSequence
getAccessibilityClassName()

Return the class name of this object to be used for accessibility purposes.

返回此对象的类名,用于辅助功能目的。

boolean
onGenericMotionEvent(MotionEvent
event)

Implement this method to handle generic motion events.

实现此方法以处理普通的MotionEvent。

boolean
onInterceptTouchEvent(MotionEvent
ev)

Implement this method to intercept all touch screen motion events.

实现此方法可拦截所有触摸屏MotionEvent。

boolean
onTouchEvent(MotionEvent
ev)

Implement this method to handle touch screen motion events.

实现此方法,以处理触摸屏的MotionEvent。

void
showNext()

Manually shows the next child.

手动显示下一个子视图。

void
showPrevious()

Manually shows the previous child.

手动显示上一个子视图。

保护方法

void
dispatchDraw(Canvas
canvas)

Called by draw to draw the child views.

通过draw()调用,来绘制子视图。

void
onLayout(boolean changed, int left, int top, int right, int bottom)

Called from layout when this view should assign a size and position to each of its children.

当此视图分配大小和位置给它的每个子项时,从布局中调用。

void
onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Measure the view and its content to determine the measured width and the measured height.

测量视图,它的内容决定测量得到宽度和高度。

继承方法

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息