- android
- android.accessibilityservice
- android.accounts
- android.content
- android.database.sqlite
- android.graphics
- android.location
- android.media
- android.net
- android.os
- android.text
- android.view
- android.view.inputmethod
- android.widget
- AbsListView
- AbsoluteLayout
- AbsSeekBar
- AbsSpinner
- AdapterView
- AnalogClock
- BaseAdapter
- BaseExpandableListAdapter
- Button
- CheckBox
- CheckedTextView
- Checkable
- Chronometer
- CompoundButton
- CursorAdapter
- CursorTreeAdapter
- DatePicker
- DialerFilter
- DigitalClock
- EditText
- Filter
- Filter.FilterListener
- Filter.FilterResults
- ExpandableListAdapter
- Filterable
- Gallery
- Gallery.LayoutParams
- GridView
- GridLayout
- RadioGroup
- ImageView
- HorizontalScrollView
- ImageButton
- ImageSwitcher
- FilterQueryProvider
- ListAdapter
- ListView
- MediaController
- QuickContactBadge
- RadioButton
- RatingBar
- RelativeLayout
- RemoteViews
- ResourceCursorAdapter
- ResourceCursorTreeAdapter
- Scroller
- ScrollView
- SearchView
- SeekBar
- SeekBar.OnSeekBarChangeListener
- SimpleAdapter
- SimpleCursorAdapter
- SimpleCursorTreeAdapter
- SimpleExpandableListAdapter
- SlidingDrawer
- Spinner
- SpinnerAdapter
- WrapperListAdapter
- TabHost
- TabHost.TabSpec
- TextView
- TimePicker
- Toast
- TableLayout
- TableRow
- TableRow.LayoutParams
- TabWidget
- TextSwitcher
- ToggleButton
- TwoLineListItem
- VideoView
- ViewAnimator
- ViewFlipper
- ViewSwitcher
- ZoomButtonsController
- ZoomButton
- ZoomControls
- dalvik.system
TableRow.LayoutParams
TableRow.LayoutParams
版本:Android 3.0 r1
类结构
public class TableRow extends LinerLayout
android.view.ViewGroup.LayoutParams
android.view.ViewGroup.MarginLayoutParams
android.widget.LinearLayout.LayoutParams
android.widget.TableRow.LayoutParams
类概述
设置在表格行中使用的布局参数
参见
XML属性
属性名称 | 描述 |
android:layout_column | 该子元素所在的列的索引值。必须是一个整数值,例如“100”。 |
android:layout_span | 定义此子元素跨越多少列。必须>=1。必须是一个整数值,例如“100”。 |
字段
public int column
单元格 cell 在 widget 上代表的列索引。
public int span
widget 跨越的列数
构造函数
public TableRow.LayoutParams (Context c, AttributeSet attrs)
public TableRow.LayoutParams (int w, int h)
设置子元素的宽度和高度
参数
w 期望高度
h 期望宽度
public TableRow.LayoutParams (int w, int h, float initWeight)
参数
w 期望高度
h 期望宽度
initWeight 期望权重(weight)
public TableRow.LayoutParams ()
设置子元素的宽度为 ViewGroup.LayoutParams
,高度参数为 WRAP_CONTENT
。
public TableRow.LayoutParams (int column)
设置指定列上的视图的宽度参数为 MATCH_PARENT
,高度参数为 WRAP_CONTENT
参数
column 视图中列的索引
public TableRow.LayoutParams (ViewGroup.LayoutParams p)
public TableRow.LayoutParams (ViewGroup.MarginLayoutParams source)
公共方法
protected void setBaseAttributes (TypedArray a, int widthAttr, int heightAttr)
从提供的参数中提取出布局参数
参数
a 从布局参数中提取的样式属性
widthAttr 宽度属性的标识符
heightAttr 高度属性的标识符
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论