Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static class

TableLayout.LayoutParams

extends LinearLayout.LayoutParams
java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.widget.LinearLayout.LayoutParams
         ↳ android.widget.TableLayout.LayoutParams

Class Overview

This set of layout parameters enforces the width of each child to be MATCH_PARENT and the height of each child to be WRAP_CONTENT , but only if the height is not specified.

Summary

[Expand]
Inherited XML Attributes
From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
[Expand]
Inherited Constants
From class android.view.ViewGroup.LayoutParams
[Expand]
Inherited Fields
From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
Public Constructors
TableLayout.LayoutParams ( Context c, AttributeSet attrs)
TableLayout.LayoutParams (int w, int h)
TableLayout.LayoutParams (int w, int h, float initWeight)
TableLayout.LayoutParams ()

Sets the child width to ViewGroup.LayoutParams and the child height to WRAP_CONTENT .

TableLayout.LayoutParams ( ViewGroup.LayoutParams p)
TableLayout.LayoutParams ( ViewGroup.MarginLayoutParams source)
Protected Methods
void setBaseAttributes ( TypedArray a, int widthAttr, int heightAttr)

Fixes the row's width to MATCH_PARENT ; the row's height is fixed to WRAP_CONTENT if no layout height is specified.

[Expand]
Inherited Methods
From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Public Constructors

public TableLayout.LayoutParams ( Context c, AttributeSet attrs)

Added in API level 1

public TableLayout.LayoutParams (int w, int h)

Added in API level 1

public TableLayout.LayoutParams (int w, int h, float initWeight)

Added in API level 1

public TableLayout.LayoutParams ()

Added in API level 1

Sets the child width to ViewGroup.LayoutParams and the child height to WRAP_CONTENT .

public TableLayout.LayoutParams ( ViewGroup.LayoutParams p)

Added in API level 1

public TableLayout.LayoutParams ( ViewGroup.MarginLayoutParams source)

Added in API level 1

Protected Methods

protected void setBaseAttributes ( TypedArray a, int widthAttr, int heightAttr)

Added in API level 1

Fixes the row's width to MATCH_PARENT ; the row's height is fixed to WRAP_CONTENT if no layout height is specified.

Parameters
a the styled attributes set
widthAttr the width attribute to fetch
heightAttr the height attribute to fetch