关于html5:studio开发安游戏属性描述

4次阅读

共计 4184 个字符,预计需要花费 11 分钟才能阅读完成。

、属性值为具体的像素值,如 30dp,40px,50sp

    android:layout_width 定义本元素的宽度
    android:layout_height 定义本元素的高度
    android:layout_margin 本元素离上下左右间的间隔

android:layout_marginBottom 离某元素底边缘的间隔
android:layout_marginLeft 离某元素左边缘的间隔
android:layout_marginRight 离某元素右边缘的间隔
android:layout_marginTop 离某元素上边缘的间隔

    android:layout_marginStart 本元素里开始的地位的间隔
    android:layout_marginEnd 本元素里完结地位的间隔
    android:scrollX 程度初始滚动偏移
    android:scrollY 垂直初始滚动偏移
    android:background 本元素的背景
    android:padding 指定布局与子布局的间距
    android:paddingLeft 指定布局右边与子布局的间距
    android:paddingTop 指定布局上边与子布局的间距
    android:paddingRight 指定布局左边与子布局的间距
    android:paddingBottom 指定布局下边与子布局的间距
    android:paddingStart 指定布局右边与子布局的间距与 android:paddingLeft 雷同
    android:paddingEnd 指定布局左边与子布局的间距与 android:paddingRight 雷同
    android:fadingEdgeLength 设置边框突变的长度
    android:minHeight 最小高度
    android:minWidth 最小宽度
    android:translationX 程度方向的挪动间隔
    android:translationY 垂直方向的挪动间隔
    android:transformPivotX 绝对于一点的程度方向偏转量
    android:transformPivotY 绝对于一点的垂直方向偏转量

二、属性值为 id 的援用名“@id/id-name”

  android:layout_alignBaseline 本元素的文本与父元素文本对齐

android:layout_below 在某元素的下方
android:layout_above 在某元素的的上方
android:layout_toLeftOf 在某元素的右边
android:layout_toRightOf 在某元素的左边

  android:layout_toStartOf 本元素从某个元素开始
  android:layout_toEndOf 本元素在某个元素完结

android:layout_alignTop 本元素的上边缘和某元素的的上边缘对齐
android:layout_alignLeft 本元素的左边缘和某元素的的左边缘对齐
android:layout_alignBottom 本元素的下边缘和某元素的的下边缘对齐
android:layout_alignRight 本元素的右边缘和某元素的的右边缘对齐

  android:layout_alignStart 本元素与开始的父元素对齐
  android:layout_alignEnd 本元素与完结的父元素对齐
  android:ignoreGravity 指定元素不受重力的影响
  android:layoutAnimation:
  定义布局显示时候的动画
  
  android:id 为布局增加 ID 不便查找
  android:tag 为布局增加 tag 不便查找与相似
  android:scrollbarThumbHorizontal 设置程度滚动条的 drawab
  android:scrollbarThumbVertical 设置垂直滚动条的 drawable
  android:scrollbarTrackHorizontal 设置程度滚动条背景(轨迹)的色 drawable
  android:scrollbarTrackVertical 设置垂直滚动条背景(轨迹)的色 drawable
  android:scrollbarAlwaysDrawHorizontalTrack 设置程度滚动条是否含有轨道
  android:scrollbarAlwaysDrawVerticalTrack 设置垂直滚动条是否含有轨道
  android:nextFocusLeft 设置右边指定视图取得下一个焦点
  android:nextFocusRight 设置左边指定视图取得下一个焦点
  android:nextFocusUp 设置上边指定视图取得下一个焦点
  android:nextFocusDown 设置下边指定视图取得下一个焦点
  android:nextFocusForward 设置指定视图取得下一个焦点
  android:contentDescription 阐明
  android:OnClick 点击时从上下文中调用指定的办法

三、属性值是 Android 内置值的

    android:gravity 控件中元素在控件内的布局形式(button 上 text 的排版)android:layout_gravity 控件绝对于父控件的布局形式
    android:persistentDrawingCachehua 定义绘图的高速缓存的持久性   
    android:descendantFocusability 管制子布局焦点获取形式 罕用于 listView 的 item 中蕴含多个控件 点击有效
    android:scrollbars 设置滚动条的状态
    android:scrollbarStyle 设置滚动条的款式
    android:fitsSystemWindows 设置布局调整时是否思考零碎窗口(如状态栏)
    android:scrollbarFadeDuration 设置滚动条淡入淡出工夫
    android:scrollbarDefaultDelayBeforeFade 设置滚动条 N 毫秒后开始淡化,以毫秒为单位。android:scrollbarSize 设置滚动调大小
    android:fadingEdge 设置拉滚动条时 , 边框突变的放向
    android:drawingCacheQuality 设置绘图时半透明品质
    android:OverScrollMode 滑动到边界时款式
    android:alpha 设置透明度
    android:rotation 旋转度数
    android:rotationX 程度旋转度数
    android:rotationY 垂直旋转度数
    android:scaleX 设置 X 轴缩放
    android:scaleY 设置 Y 轴缩放
    android:verticalScrollbarPosition 摄者垂直滚动条的地位
    android:layerType 设定反对
    android:layoutDirection 定义布局图纸的方向
    android:textDirection 定义文字方向
    android:textAlignment 文字对齐形式
    android:importantForAccessibility 设置可达性的重要行
    android:labelFor 增加标签         

复制
四、属性值 true 或者 游戏 false

       Android:layout_centerHrizontal 程度居中

android:layout_centerVertical 垂直居中
android:layout_centerInparent 绝对于父元素齐全居中
android:layout_alignParentBottom 贴紧父元素的下边缘
android:layout_alignParentLeft 贴紧父元素的左边缘
android:layout_alignParentRight 贴紧父元素的右边缘
android:layout_alignParentTop 贴紧父元素的上边缘
android:layout_alignWithwww.diuxie.comParentIfMissing 如果对应的兄弟元素找不到的话就以父元素做参照物

       android:layout_alignParentStart 紧贴父元素完结地位开始
       android:layout_alignParentEnd 紧贴父元素完结地位完结
       android:animateLayoutChanges 布局扭转时是否有动画成果
       android:clipChildren 定义子布局是否肯定要在限定的区域内
       android:clipToPadding 定义布局间是否有间距
       android:animationCache 定义子布局也有动画成果
       android:alwaysDrawnWithCache 定义子布局是否利用绘图的高速缓存
       android:addStatesFromChildren 定义布局是否利用子布局的背景
       android:splitMotionEvents 定义布局是否传递 touch 事件到子布局
       android:focusableInTouchMode 定义是否能够通过 touch 获取到焦点
       android:isScrollContainer 定义布局是否作为一个滚动容器 能够调整整个窗体
       android:fadeScrollbars 滚动条自动隐藏
       android:fitsSystemWindows 设置布局调整时是否思考零碎窗口(如状态栏)
       android:visibility 定义布局是否可见
       android:requiresFadingEdge 定义滚动时边缘是否褪色
       android:clickable 定义是否可点击
       android:longClickable 定义是否可长点击
       android:saveEnabled 设置是否在窗口解冻时(如旋转屏幕)保留 View 的数据
       android:filterTouchesWhenObscured 所在窗口被其它可见窗口遮住时, 是否过滤触摸事件
       android:keepScreenOn 设置屏幕常亮
       android:duplicateParentState 是否从父容器中获取绘图状态(光标, 按下等)
       android:soundEffectsEnabled 点击或触摸是否有声音成果
       android:hapticFeedbackEnabled 设置触感反馈
正文完
 0