完整内容,请查看: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关联的视图。 |
- 阅读《Android 从入门到精通》(29)——四大布局
- android 窗口如何靠左和靠右边框布局
- android 自定义View 在布局文件中写法
- 使用命令建立简单的布局
- Android学习笔记6——基本布局
- AndroidTextView的跑马灯效果,解决复杂布局不能获取焦点的问题
随机推荐
-
五.在Android中实现线程的方法
-
Android:activity context, application
-
android前端与java web后台的ssl交互
-
Android中设置控件可见与不可见详解
-
Android中的几种网络请求方式详解
-
Android,UI主线程与子线程
-
Android(安卓)TextView、EditText显示表
-
搭建Android开发环境与开发工具选择
-
Unity3d调用android中的方法
-
如果你想用对话框代替一个activity的话,可