Skip to content

Most visited

Recently visited

navigation
Added in API level 1

TableLayout.LayoutParams

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


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

Inherited XML attributes

From class android.widget.LinearLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

Inherited constants

From class android.view.ViewGroup.LayoutParams

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.

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

TableLayout.LayoutParams

Added in API level 1
TableLayout.LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context
attrs AttributeSet

TableLayout.LayoutParams

Added in API level 1
TableLayout.LayoutParams (int w, 
                int h)

Parameters
w int
h int

TableLayout.LayoutParams

Added in API level 1
TableLayout.LayoutParams (int w, 
                int h, 
                float initWeight)

Parameters
w int
h int
initWeight float

TableLayout.LayoutParams

Added in API level 1
TableLayout.LayoutParams ()

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

TableLayout.LayoutParams

Added in API level 1
TableLayout.LayoutParams (ViewGroup.LayoutParams p)

Parameters
p ViewGroup.LayoutParams

TableLayout.LayoutParams

Added in API level 1
TableLayout.LayoutParams (ViewGroup.MarginLayoutParams source)

Parameters
source ViewGroup.MarginLayoutParams

Protected methods

setBaseAttributes

Added in API level 1
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.

Parameters
a TypedArray: the styled attributes set
widthAttr int: the width attribute to fetch
heightAttr int: the height attribute to fetch
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.