完整内容,请查看: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关联的视图。 |
- Android7.0中文文档(API)-- AdapterView.OnItemLongClickListener
- Android与IOS异同点对比(1)------ 显示
- 【Android(安卓)笔记 五】 Android(安卓)Sensor感应器介绍(一)重力
- android坐标系相关知识点
- android.view.InflateException: Binary XML file line #7: Erro
- view属性大全
- android 抽屉式滑动demo
- 线性布局LinearLayout(二)小练习
- Android(安卓)禁止横竖屏切换
随机推荐
-
Android默认开机横屏
-
Android-NDK编译:cocos2d-x(三) eclipse 导
-
java之php、Android、JAVA、C# 3DES加密
-
Android学习笔记(二)——Android的数据存储
-
私有析构函数 Android(安卓)代码分析
-
Track change of IInterface::asBinder f
-
获取SearchView中的EditText,并改变其属性
-
裁判文书App(2020最新版) 逆向过程分析
-
Androids——日常开发工具和组件集合
-
Android(安卓)日历(EasyCalendar)