Build 1.0_r1(from source)

android.widget
Class TableLayout.LayoutParams

java.lang.Object
  extended by android.view.ViewGroup.LayoutParams
      extended by android.view.ViewGroup.MarginLayoutParams
          extended by android.widget.LinearLayout.LayoutParams
              extended by android.widget.TableLayout.LayoutParams
Enclosing class:
TableLayout

public static class TableLayout.LayoutParams
extends LinearLayout.LayoutParams

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


Field Summary
 
Fields inherited from class android.widget.LinearLayout.LayoutParams
gravity, weight
 
Fields inherited from class android.view.ViewGroup.MarginLayoutParams
bottomMargin, leftMargin, rightMargin, topMargin
 
Fields inherited from class android.view.ViewGroup.LayoutParams
FILL_PARENT, height, layoutAnimationParameters, width, WRAP_CONTENT
 
Constructor Summary
TableLayout.LayoutParams()
          Sets the child width to ViewGroup.LayoutParams and the child height to ViewGroup.LayoutParams.WRAP_CONTENT.
TableLayout.LayoutParams(Context c, AttributeSet attrs)
          
TableLayout.LayoutParams(int w, int h)
          
TableLayout.LayoutParams(int w, int h, float initWeight)
          
TableLayout.LayoutParams(ViewGroup.LayoutParams p)
          
TableLayout.LayoutParams(ViewGroup.MarginLayoutParams source)
          
 
Method Summary
protected  void setBaseAttributes(TypedArray a, int widthAttr, int heightAttr)
          Fixes the row's width to ViewGroup.LayoutParams.FILL_PARENT; the row's height is fixed to ViewGroup.LayoutParams.WRAP_CONTENT if no layout height is specified.
 
Methods inherited from class android.widget.LinearLayout.LayoutParams
debug
 
Methods inherited from class android.view.ViewGroup.MarginLayoutParams
setMargins
 
Methods inherited from class android.view.ViewGroup.LayoutParams
sizeToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableLayout.LayoutParams

public TableLayout.LayoutParams(Context c,
                                AttributeSet attrs)


TableLayout.LayoutParams

public TableLayout.LayoutParams(int w,
                                int h)


TableLayout.LayoutParams

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


TableLayout.LayoutParams

public TableLayout.LayoutParams()

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


TableLayout.LayoutParams

public TableLayout.LayoutParams(ViewGroup.LayoutParams p)


TableLayout.LayoutParams

public TableLayout.LayoutParams(ViewGroup.MarginLayoutParams source)

Method Detail

setBaseAttributes

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

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

Overrides:
setBaseAttributes in class ViewGroup.LayoutParams
Parameters:
a - the styled attributes set
widthAttr - the width attribute to fetch
heightAttr - the height attribute to fetch

Build 1.0_r1(from source)

Please submit a feedback, bug or feature