XML布局属性
2017-04-16 19:56
127 查看
fill_parent设置一个顶部布局或控件强制性让它布满整个屏幕。
wrap_content布局指根据视图内部内容自动扩展以适应其大小。
android:addStatesFromChildren定义布局是否应用子布局的背景
android:alpha设置透明度
android:alwaysDrawnWithCache定义子布局是否应用绘图的高速缓存
android:animateLayoutChanges布局改变时是否有动画效果
android:animationCache定义子布局也有动画效果
android:background本元素的背景
android:clickable定义是否可点击
android:clipChildren定义子布局是否一定要在限定的区域内
android:clipToPadding定义布局间是否有间距
android:contentDescription 说明
android:descendantFocusability控制子布局焦点获取方式
android:drawingCacheQuality设置绘图时半透明质量
android:duplicateParentState是否从父容器中获取绘图状态(光标,按下等)
android:fadeScrollbars滚动条自动隐藏
android:fadingEdge 设置拉滚动条时 ,边框渐变的放向
android:fadingEdgeLength 设置边框渐变的长度
android:filterTouchesWhenObscured所在窗口被其它可见窗口遮住时,是否过滤触摸事件
android:fitsSystemWindows设置布局调整时是否考虑系统窗口(如状态栏)
android:fitsSystemWindows设置布局调整时是否考虑系统窗口(如状态栏)
android:focusableInTouchMode定义是否可以通过touch获取到焦点
android:gravity控件布局方式
android:hapticFeedbackEnabled设置触感反馈
android:id 为布局添加ID方便查找
android:ignoreGravity 指定元素不受重力的影响
android:importantForAccessibility设置可达性的重要行
android:isScrollContainer定义布局是否作为一个滚动容器 可以调整整个窗体
android:keepScreenOn设置屏幕常亮
android:labelFor添加标签
android:layerType设定支持
android:longClickable定义是否可长点击
android:minHeight最小高度
android:minWidth最小宽度
android:nextFocusDown设置下边指定视图获得下一个焦点
android:nextFocusForward设置指定视图获得下一个焦点
android:nextFocusLeft 设置左边指定视图获得下一个焦点
android:nextFocusRight设置右边指定视图获得下一个焦点
android:nextFocusUp设置上边指定视图获得下一个焦点
android:OnClick 点击时从上下文中调用指定的方法
android:orientation=”vertical”垂直线性布局,”horizontal”水平线性布局
android:OverScrollMode滑动到边界时样式
android:paddingBottom指定布局下边与子布局的间距
android:paddingEnd指定布局右边与子布局的间距与android:paddingRight相同
android:paddingLeft指定布局左边与子布局的间距
android:paddingRight指定布局右边与子布局的间距
android:paddingStart指定布局左边与子布局的间距与android:paddingLeft相同
android:paddingTop指定布局上边与子布局的间距
android:padding指定布局与子布局的间距
android:persistentDrawingCachehua定义绘图的高速缓存的持久性
android:requiresFadingEdge定义滚动时边缘是否褪色
android:rotationX水平旋转度数
android:rotationY垂直旋转度数
android:rotation旋转度数
android:saveEnabled设置是否在窗口冻结时(如旋转屏幕)保存View的数据
android:scaleX设置X轴缩放
android:scaleY设置Y轴缩放
android:scrollbarAlwaysDrawHorizontalTrack 设置水平滚动条是否含有轨道
android:scrollbarAlwaysDrawVerticalTrack 设置垂直滚动条是否含有轨道
android:scrollbarDefaultDelayBeforeFade设置滚动条N毫秒后开始淡化,以毫秒为单位。
android:scrollbarFadeDuration设置滚动条淡入淡出时间
android:scrollbarSize设置滚动调大小
android:scrollbarStyle设置滚动条的样式
android:scrollbars设置滚动条的状态
android:scrollbarThumbHorizontal设置水平滚动条的drawable。
android:scrollbarThumbVertical设置垂直滚动条的drawable
android:scrollbarTrackHorizontal设置水平滚动条背景(轨迹)的色drawable
android:scrollbarTrackVertical设置垂直滚动条背景(轨迹)的色drawable
android:scrollX水平初始滚动偏移
android:scrollY垂直初始滚动偏移
android:soundEffectsEnabled点击或触摸是否有声音效果
android:splitMotionEvents定义布局是否传递touch事件到子布局
android:tag为布局添加tag方便查找与类似
android:textAlignment文字对齐方式
android:textDirection定义文字方向
android:transformPivotX相对于一点的水平方向偏转量
android:transformPivotY相对于一点的垂直方向偏转量
android:translationX 水平方向的移动距离
android:translationY垂直方向的移动距离
android:verticalScrollbarPosition摄者垂直滚动条的位置
android:visibility定义布局是否可见
wrap_content布局指根据视图内部内容自动扩展以适应其大小。
Layout大类 android:layout_above 在某元素的的上方 android:layout_alignBaseline 本元素的文本与父元素文本对齐 android:layout_alignBottom 本元素的下边缘和某元素的的下边缘对齐 android:layout_alignEnd本元素与结束的父元素对齐 android:layout_alignLeft 本元素的左边缘和某元素的的左边缘对齐 android:layout_alignParentBottom 贴紧父元素的下边缘 android:layout_alignParentEnd紧贴父元素结束位置结束 android:layout_alignParentLeft 贴紧父元素的左边缘 android:layout_alignParentRight 贴紧父元素的右边缘 android:layout_alignParentStart紧贴父元素结束位置开始 android:layout_alignParentTop 贴紧父元素的上边缘 android:layout_alignRight 本元素的右边缘和某元素的的右边缘对齐 android:layout_alignStart本元素与开始的父元素对齐 android:layout_alignTop 本元素的上边缘和某元素的的上边缘对齐 android:layout_alignWithParentIfMissing 如果对应的兄弟元素找不到 就以父元素做参照物 android:layout_below 在某元素的下方 android:layout_centerHrizontal 水平居中 android:layout_centerInparent 相对于父元素完全居中 android:layout_centerVertical 垂直居中 android:layout_gravity布局方式 android:layout_height定义本元素的高度 android:layout_margin 本元素离上下左右间的距离 android:layout_marginBottom 离某元素底边缘的距离 android:layout_marginEnd本元素里结束位置的距离 android:layout_marginLeft 离某元素左边缘的距离 android:layout_marginRight 离某元素右边缘的距离 android:layout_marginStart本元素里开始的位置的距离 android:layout_marginTop 离某元素上边缘的距离 android:layout_toEndOf本元素在某个元素结束 android:layout_toLeftOf 在某元素的左边 android:layout_toRightOf 在某元素的右边 android:layout_toStartOf 本元素从某个元素开始 android:layout_width定义本元素的宽度 android:layout_weight定义本元素的占屏比例 android:layoutAnimation定义布局显示时候的动画 android:layoutDirection 定义布局图纸的方向
android:addStatesFromChildren定义布局是否应用子布局的背景
android:alpha设置透明度
android:alwaysDrawnWithCache定义子布局是否应用绘图的高速缓存
android:animateLayoutChanges布局改变时是否有动画效果
android:animationCache定义子布局也有动画效果
android:background本元素的背景
android:clickable定义是否可点击
android:clipChildren定义子布局是否一定要在限定的区域内
android:clipToPadding定义布局间是否有间距
android:contentDescription 说明
android:descendantFocusability控制子布局焦点获取方式
android:drawingCacheQuality设置绘图时半透明质量
android:duplicateParentState是否从父容器中获取绘图状态(光标,按下等)
android:fadeScrollbars滚动条自动隐藏
android:fadingEdge 设置拉滚动条时 ,边框渐变的放向
android:fadingEdgeLength 设置边框渐变的长度
android:filterTouchesWhenObscured所在窗口被其它可见窗口遮住时,是否过滤触摸事件
android:fitsSystemWindows设置布局调整时是否考虑系统窗口(如状态栏)
android:fitsSystemWindows设置布局调整时是否考虑系统窗口(如状态栏)
android:focusableInTouchMode定义是否可以通过touch获取到焦点
android:gravity控件布局方式
android:hapticFeedbackEnabled设置触感反馈
android:id 为布局添加ID方便查找
android:ignoreGravity 指定元素不受重力的影响
android:importantForAccessibility设置可达性的重要行
android:isScrollContainer定义布局是否作为一个滚动容器 可以调整整个窗体
android:keepScreenOn设置屏幕常亮
android:labelFor添加标签
android:layerType设定支持
android:longClickable定义是否可长点击
android:minHeight最小高度
android:minWidth最小宽度
android:nextFocusDown设置下边指定视图获得下一个焦点
android:nextFocusForward设置指定视图获得下一个焦点
android:nextFocusLeft 设置左边指定视图获得下一个焦点
android:nextFocusRight设置右边指定视图获得下一个焦点
android:nextFocusUp设置上边指定视图获得下一个焦点
android:OnClick 点击时从上下文中调用指定的方法
android:orientation=”vertical”垂直线性布局,”horizontal”水平线性布局
android:OverScrollMode滑动到边界时样式
android:paddingBottom指定布局下边与子布局的间距
android:paddingEnd指定布局右边与子布局的间距与android:paddingRight相同
android:paddingLeft指定布局左边与子布局的间距
android:paddingRight指定布局右边与子布局的间距
android:paddingStart指定布局左边与子布局的间距与android:paddingLeft相同
android:paddingTop指定布局上边与子布局的间距
android:padding指定布局与子布局的间距
android:persistentDrawingCachehua定义绘图的高速缓存的持久性
android:requiresFadingEdge定义滚动时边缘是否褪色
android:rotationX水平旋转度数
android:rotationY垂直旋转度数
android:rotation旋转度数
android:saveEnabled设置是否在窗口冻结时(如旋转屏幕)保存View的数据
android:scaleX设置X轴缩放
android:scaleY设置Y轴缩放
android:scrollbarAlwaysDrawHorizontalTrack 设置水平滚动条是否含有轨道
android:scrollbarAlwaysDrawVerticalTrack 设置垂直滚动条是否含有轨道
android:scrollbarDefaultDelayBeforeFade设置滚动条N毫秒后开始淡化,以毫秒为单位。
android:scrollbarFadeDuration设置滚动条淡入淡出时间
android:scrollbarSize设置滚动调大小
android:scrollbarStyle设置滚动条的样式
android:scrollbars设置滚动条的状态
android:scrollbarThumbHorizontal设置水平滚动条的drawable。
android:scrollbarThumbVertical设置垂直滚动条的drawable
android:scrollbarTrackHorizontal设置水平滚动条背景(轨迹)的色drawable
android:scrollbarTrackVertical设置垂直滚动条背景(轨迹)的色drawable
android:scrollX水平初始滚动偏移
android:scrollY垂直初始滚动偏移
android:soundEffectsEnabled点击或触摸是否有声音效果
android:splitMotionEvents定义布局是否传递touch事件到子布局
android:tag为布局添加tag方便查找与类似
android:textAlignment文字对齐方式
android:textDirection定义文字方向
android:transformPivotX相对于一点的水平方向偏转量
android:transformPivotY相对于一点的垂直方向偏转量
android:translationX 水平方向的移动距离
android:translationY垂直方向的移动距离
android:verticalScrollbarPosition摄者垂直滚动条的位置
android:visibility定义布局是否可见
相关文章推荐
- android RelativeLayout常用xml布局属性
- android基础知识复习(二)——RelativeLayout布局属性、背景、半透明设置(XML设置)
- android xml布局文件属性说明
- Android layout 布局属性 xml 标签 详情
- Android开发---xml布局文件中的常见属性总结
- Android学习笔记——xml布局属性
- android:布局参数,控件属性及各种xml的作用
- android:布局参数,控件属性及各种xml的作用
- android RelativeLayout常用xml布局属性
- [Android]XML界面布局常用属性概括
- android:布局参数,控件属性及各种xml的作用
- 2.Android开发---xml布局文件中的常见属性总结
- android xml界面布局常用属性概括
- android之布局xml各种控件属性详解
- TabActivity可以显示实现多页显示效果,在xml布局文件中需要有一些特殊的配置属性
- 布局xml中的属性设置如何在代码中实现
- android xml布局文件中EditText的属性详解
- android-xml布局属性 - 随心
- Android Layout.xml布局属性
- Android布局文件layout.xml的一些属性值