LinearLayout 特有属性

属性

  1. android:baselineAligned:When set to false, prevents the layout from aligning its children's baselines. [boolean]默认true:设置布局控件和文字的基线对齐
  1. android:baselineAlignedChildIndex:When a linear layout is part of another layout that is baseline aligned, it can specify which of its children to baseline align to (that is, which child TextView).[integer]:

    Related Methods

    • setBaselineAlignedChildIndex(int)
  2. android:divider:Drawable to use as a vertical divider between buttons.垂直分割

    Related Methods

    • setDividerDrawable(Drawable)
  3. android:gravity:Specifies how an object should position its content, on both the X and Y axes, within its own bounds.[enum]:定义控件的位置

    Values

    • top:
    • bottom
    • left
    • right
    • center_vertical
    • fill_vertical
    • certer_horizontal
    • fill_horizontal
    • center
    • fill
    • clip_vertical
    • clip_horizontal
    • start
    • end

    Related Methods

    • setGravity(int)
  4. android:measureWithLargestChild:When set to true, all children with a weight will be considered having the minimum size of the largest child. If false, all children are measured normally.[boolean]:如果设置为ture子控件的尺寸需要考虑最小尺寸的最大控件

    Related Methods

    • setMesureWithLargestChildEnabled(boolean)
  5. android:orientation:Should the layout be a column or a row? [enum]:设置控件布局的方式

    Values

    • horizontal:0
    • vertical:1

    Related Methods

    • setOrientation(int)
  6. android:weightSum:Defines the maximum weight sum.[float]:设置权重的总和。(默认是全部子控件权重之和)

更多相关文章

  1. android EditText设置不可写
  2. 三、安卓UI学习(1)
  3. android“设置”里的版本号
  4. android用户界面之按钮(Button)教程实例汇
  5. 在Fragment中设置控件点击方法,执行失败。
  6. Android(安卓)闹钟管理类的使用
  7. TabHost与RadioGroup结合完成的菜单【带效果图】5个Activity
  8. Android设置通知栏/状态栏透明改变通知栏颜色和app最上部分颜色
  9. android 设置中划线 下划线等

随机推荐

  1. Android(安卓)Drawable--总览
  2. Android对话框_详解
  3. Chrome for Android 编译了两天终于在师
  4. android性能测试bootchart篇
  5. eclipse adb 启动失败,无法匹配android设
  6. 安装Android 开发工具
  7. 解决:android Listview 拖动时背景为黑色
  8. Instrumentation学习基础(一)
  9. 编程实现Android相机Camera设置
  10. Android 获取远程图片与本地图片缓存