Android View
2016-07-10 17:09:02 0 举报
AI智能生成
Android View是Android系统中用户界面的基本构建块,它负责显示和处理用户交互。View可以是一个简单的按钮、文本框或图像,也可以是一个复杂的布局,如列表、网格或对话框。每个View都是一个对象,有自己的属性和方法,可以通过XML布局文件或Java代码进行定义和配置。ViewGroup是一种特殊的View,它可以包含其他View,用于创建层次结构的用户界面。View的绘制是由系统自动进行的,开发者可以通过重写onDraw方法来自定义绘制过程。View还支持事件处理,如点击、长按、触摸等,开发者可以通过实现相应的回调方法来响应用户操作。
作者其他创作
大纲/内容
View
接口
Drawable.Callback
public void invalidateDrawable(Drawable who)
KeyEvent.Callback
AccessibilityEventSource
public void sendAccessibilityEvent(int eventType)
public void sendAccessibilityEventUnchecked(AccessibilityEvent event)
on方法
onAnimationStart
onAnimationEnd
onApplyWindowInsets
onAttachedToWindow
onCancelPendingInputEvents
onCheckIsTextEditor
onCloseSystemDialogs
onConfigurationChanged
onCreateContextMenu
onCreateDrawableState
onCreateInputConnection
onDetachedFromWindow
onDetachedFromWindowInternal
onDisplayHint
onDragEvent
onDraw
onDrawHorizontalScrollBar
onDrawScrollBars
onDrawVerticalScrollBar
onFilterTouchEventForSecurity
onFinishInflate
onFinishTemporaryDetach
onFocusChanged
onFocusLost
onGenericMotionEvent
onHoverChanged
onHoverEvent
onInitializeAccessibilityEvent
onInitializeAccessibilityEventInternal
onInitializeAccessibilityNodeInfo
onInitializeAccessibilityNodeInfoInternal
onKeyDown
onKeyLongPress
onKeyMultiple
onKeyPreIme
onKeyShortcut
onKeyUp
onLayout
onMeasure
onOverScrolled
onPopulateAccessibilityEvent
onPopulateAccessibilityEventInternal
onResolveDrawables
onRestoreInstanceState
onRtlPropertiesChanged
onSaveInstanceState
onScreenStateChanged
onScrollChanged
onSetAlpha
onSizeChanged
onStartTemporaryDetach
onTouchEvent
onTrackballEvent
onVisibilityChanged
onWindowFocusChanged
onWindowSystemUiVisibilityChanged
onWindowVisibilityChanged
0 条评论
下一页