完整内容请查看:http://www.zhdoc.net/android/reference/android/widget/TableRow.html
TableRow
public class TableRow
extends LinearLayout
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.view.ViewGroup | |||
↳ | android.widget.LinearLayout | |||
↳ | android.widget.TableRow |
A layout that arranges its children horizontally. A TableRow should always be used as a child of a TableLayout
. If a TableRow's parent is not a TableLayout, the TableRow will behave as an horizontal LinearLayout
.
一种布局,其将子项水平放置。一个TableRow应该始终作为一个TableLayout
的子项使用。如果一个TableRow的父项不是TableLayout,则TableRow将和一个水平方位的LinearLayout
一样。
The children of a TableRow do not need to specify the layout_width
and layout_height
attributes in the XML file. TableRow always enforces those values to be respectively MATCH_PARENT
and WRAP_CONTENT
.
TableRow的子项无需在XML文件中指定layout_width
和layout_height
。TableRow始终将这些值强制设置为MATCH_PARENT
和WRAP_CONTENT
。
Also see android.widget.TableRow.LayoutParams
for layout attributes
参考android.widget.TableRow.LayoutParams
了解布局属性。
摘要
嵌套类 | |
---|---|
class | TableRow.LayoutParams Set of layout parameters used in table rows. |
继承XML属性 | |
---|---|
![]() android.widget.LinearLayout
| |
![]() android.view.ViewGroup
| |
![]() android.view.View
|
继承常量 |
---|
![]() android.widget.LinearLayout
|
![]() android.view.ViewGroup
|
![]() android.view.View
|
继承字段 |
---|
![]() android.view.View
|
Public构造方法 | |
---|---|
TableRow(Context context) Creates a new TableRow for the given context. | |
TableRow(Context context, AttributeSet attrs) Creates a new TableRow for the given context and with the specified set attributes. |
Public方法
完整内容请查看:http://www.zhdoc.net/android/reference/android/widget/TableRow.html