完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/LinearLayout.LayoutParams.html

LinearLayout.LayoutParams

public static class LinearLayout.LayoutParams
extends ViewGroup.MarginLayoutParams

java.lang.Object
android.view.ViewGroup.LayoutParams
android.view.ViewGroup.MarginLayoutParams
android.widget.LinearLayout.LayoutParams
已知的直接子类 ActionMenuView.LayoutParams, AppBarLayout.LayoutParams, RadioGroup.LayoutParams, TableLayout.LayoutParams, TableRow.LayoutParams

Per-child layout information associated with ViewLinearLayout.
与ViewLinearLayout相关的每个子布局的信息。

摘要

XML属性

android:layout_gravity 重力值指定了一个组件如何被放置在它的单元格组中。
android:layout_weight 线性布局(LinearLayout)中的额外空间,有多少分配给与这些LayoutParams关联的视图。

继承XML属性

From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

继承常量

From class android.view.ViewGroup.LayoutParams

字段

public int gravity

Gravity for the view associated with these LayoutParams.
与这些LayoutParams相关的视图的重力值。

public float weight

Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams.
线性布局(LinearLayout)中的额外空间,有多少将被分配给与这些LayoutParams关联的视图。

更多相关文章

  1. Android7.0中文文档(API)-- AdapterView.OnItemLongClickListener
  2. Android与IOS异同点对比(1)------ 显示
  3. 【Android(安卓)笔记 五】 Android(安卓)Sensor感应器介绍(一)重力
  4. android坐标系相关知识点
  5. android.view.InflateException: Binary XML file line #7: Erro
  6. view属性大全
  7. android 抽屉式滑动demo
  8. 线性布局LinearLayout(二)小练习
  9. Android(安卓)禁止横竖屏切换

随机推荐

  1. Android默认开机横屏
  2. Android-NDK编译:cocos2d-x(三) eclipse 导
  3. java之php、Android、JAVA、C# 3DES加密
  4. Android学习笔记(二)——Android的数据存储
  5. 私有析构函数 Android(安卓)代码分析
  6. Track change of IInterface::asBinder f
  7. 获取SearchView中的EditText,并改变其属性
  8. 裁判文书App(2020最新版) 逆向过程分析
  9. Androids——日常开发工具和组件集合
  10. Android(安卓)日历(EasyCalendar)