Android7.0中文API -- TableRow

来源:互联网 发布:学演讲的软件 编辑:程序博客网 时间:2024/06/04 18:57

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

TableRow

public class TableRow
extendsLinearLayout

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 aTableLayout. If a TableRow's parent is not a TableLayout, the TableRow will behave as an horizontalLinearLayout.
一种布局,其将子项水平放置。一个TableRow应该始终作为一个TableLayout的子项使用。如果一个TableRow的父项不是TableLayout,则TableRow将和一个水平方位的LinearLayout一样。

The children of a TableRow do not need to specify the layout_width andlayout_height attributes in the XML file. TableRow always enforces those values to be respectivelyMATCH_PARENT andWRAP_CONTENT.
TableRow的子项无需在XML文件中指定layout_widthlayout_height。TableRow始终将这些值强制设置为MATCH_PARENTWRAP_CONTENT

Also see android.widget.TableRow.LayoutParams for layout attributes
参考android.widget.TableRow.LayoutParams了解布局属性。

摘要


嵌套类

classTableRow.LayoutParams

Set of layout parameters used in table rows. 
表行中使用的一组布局参数。 

继承XML属性

From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View

继承常量

From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View

继承字段

From class android.view.View

Public构造方法

TableRow(Context context)

Creates a new TableRow for the given context.
为指定的Context创建一个新的TableRow。

TableRow(Context context, AttributeSet attrs)

Creates a new TableRow for the given context and with the specified set attributes.
为指定的Context和指定的AttributeSet创建一个新的TableRow。

Public方法


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

原创粉丝点击