Added in API level 1

TableRow


open class TableRow : LinearLayout
kotlin.Any
   ↳ 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 android.widget.TableLayout. If a TableRow's parent is not a TableLayout, the TableRow will behave as an horizontal android.widget.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 android.widget.TableLayout.LayoutParams#MATCH_PARENT and android.widget.TableLayout.LayoutParams#WRAP_CONTENT.

Also see android.widget.TableRow.LayoutParams for layout attributes

Summary

Nested classes
open

Set of layout parameters used in table rows.

Inherited XML attributes
Inherited constants
Public constructors
TableRow(context: Context!)

Creates a new TableRow for the given context.

TableRow(context: Context!, attrs: AttributeSet!)

Creates a new TableRow for the given context and with the specified set attributes.

Public methods
open TableRow.LayoutParams!

Returns a new set of layout parameters based on the supplied attributes set.

open CharSequence!

open View!

open Int

open Unit

Register a callback to be invoked when a child is added to or removed from this view.

Protected methods
open Boolean

open LinearLayout.LayoutParams!

Returns a set of layout parameters with a width of android.view.ViewGroup.LayoutParams#MATCH_PARENT, a height of android.view.ViewGroup.LayoutParams#WRAP_CONTENT and no spanning.

open LinearLayout.LayoutParams!

Returns a safe set of layout parameters based on the supplied layout params.

open Unit
onLayout(changed: Boolean, l: Int, t: Int, r: Int, b: Int)

Called from layout when this view should assign a size and position to each of its children.

open Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

Measure the view and its content to determine the measured width and the measured height.

Inherited functions