android:accessibilityLiveRegion(19)
辅助性服务是否应自动通知更改视图的内容描述或文本,或者子view的文字描述或文本内容;(none——不通知、polite——通知、assertive——打断语音,并通知)
android:accessibilityTraversalAfter(22)
android:accessibilityTraversalBefore(22)
android:alpha(11)
设置该组件的透明度(0-1)
android:background
设置该组件的背景颜色
android:backgroundTint(21)
设置背景色调
android:backgroundTintMode(21)
设置背景色调的混合模式
android:clickable
设置该组件是否可以激发点击事件
android:contentDescription
设置组件的内容描述信息
android:contextClickable(23)
android:drawingCacheQuality
设置组件所使用的绘制缓存的质量
android:duplicateParentState
如果设置此属性,将直接从父容器中获取绘图状态(光标,按下等)
android:elevation(21)
设置组件浮起来的高度
android:fadeScrollbars
设置滚动该组件时组件边界是否使用淡出效果
android:fadingEdgeLength
设置淡出边界长度
android:filterTouchesWhenObscured
view所在窗口被其它可见窗口遮住时,是否过滤触摸事件
android:fitsSystemWindows(14)
设置布局调整时是否考虑系统窗口(如状态栏)
android:focusable
设置该组件是否可以得到焦点
android:focusableInTouchMode
设置该组件在触摸模式下是否可以得到焦点
android:foreground
前置图片
android:foregroundGravity(23)
前置图片重心
android:foregroundTint(21)
android:foregroundTintMode(21)
android:hapticFeedbackEnabled
设置触感反馈
android:id
设置该组件的唯一标示,java代码中可通过findViewById来获取它
android:importantForAccessibility(16)
设置无障碍服务的重要性auto|yes|no|noHideDescendants
android:isScrollContainer
设置该组件是否作为可滚动容器使用
android:keepScreenOn
设置该组件是否会强制手机屏幕一直打开
android:layerType(11)
设置指定层的类型,可以取以下3个值: none|software|hardware。
android:layoutDirection(17)
定义布局图纸的方向
android:longClickable
设置该组件是否可以响应长单击事件
android:minHeight
设置该组件的最小高度
android:minWidth
设置该组件的最小宽度
android:nextFocusDown
设置焦点在该组件上,且单击向下键时获得焦点的组件ID
android:nextFocusForward
设置焦点在该组件上,且单击向左键时获得焦点的组件ID
android:nextFocusLeft
设置焦点在该组件上,且单击左键时获得焦点的组件ID
android:nextFocusRight
设置焦点在该组件上,且单击向右键获得焦点的组件ID
android:nextFocusUp
设置焦点在该组件上,且单击向上键获得焦点的组件ID
android:onClick
为该组件的单击事件绑定监听器
android:padding
在组件四边设置填充区域
android:paddingBottom
在组件的下面设置填充区域
android:paddingEnd(17)
根据左右对齐方式来起作用,左对齐时, paddingEnd 对应 paddingRight,右对齐时, 正好相反
android:paddingLeft
在组件的左边设置填充区域
android:paddingRight
在组件的右边设置填充区域
android:paddingStart(17)
根据左右对齐方式来起作用,左对齐时, paddingStart 对应 paddingLeft,右对齐时, 正好相反
android:paddingTop
在组件的上面设置填充区域
android:requiresFadingEdge
android:rotation
设置组件旋转的角度
android:rotationX
设置组件绕X轴旋转的角度
android:rotationY
设置组件绕Y轴旋转的角度
android:saveEnabled
如果设置为false,那当该组件被冻结师不会保存它的状态
android:scaleX
设置该组件在水平方向的缩放比
android:scaleY
设置该组件在竖直方向的缩放比
android:scrollIndicators(23)
android:scrollX
该组件初始化后的水平滚动偏移
android:scrollY
该组件初始化后的垂直滚动偏移
android:scrollbarAlwaysDrawHorizontalTrack
设置该组件是否总是显示水平滚动条的轨道
android:scrollbarAlwaysDrawVerticalTrack
设置该组件是否在总是显示垂直滚动条的轨道
android:scrollbarDefaultDelayBeforeFade(16)
设置滚动条在淡出隐藏隐藏前延迟多少秒
android:scrollbarFadeDuration(16)
设置滚动条淡出隐藏过程需要多少秒
android:scrollbarSize(16)
设置垂直滚动条的宽度和水平滚动条的高度
android:scrollbarStyle
设置滚动条的风格和位置:insideOverlay|insideInset|outsideOverlay|outsideInset
android:scrollbarThumbHorizontal
设置该组件水平滚动条的滑块对应的Drawable对象
android:scrollbarThumbVertical
设置该组件垂直滚动条的滑块对应的Drawable对象
android:scrollbarTrackHorizontal
设置该组件水平滚动条的轨道对应的Drawable对象
android:scrollbarTrackVertical
设置该组件垂直滚动条的轨道对应的Drawable对象
android:scrollbars
设置显示的滚动条种类none/horizontal/vertical
android:soundEffectsEnabled
设置该组件被点击时是否使用音效
android:stateListAnimator(21)
android:tag
为该组件设置一个字符串类型的tag值,可通过View的getTag()获取该字符串,可通过findViewWithTag()查找该组件
android:textAlignment
设置文本的显示对齐方式
android:textDirection
设置文本的显示方向
android:transformPivotX(11)
设置该组件旋转时旋转中心的X坐标
android:transformPivotY(11)
设置该组件旋转时旋转中心的Y坐标
android:transitionName
android:translationX(11)
设置该组件在X方向上的位移
android:translationY(11)
设置该组件在Y方向上的位移
android:translationZ(21)
设置该组件在Z方向上的位移
android:visibility
设置该组件是否可见
网友评论