android.widget
Class TableLayout.LayoutParams
java.lang.Object
android.view.ViewGroup.LayoutParams
android.view.ViewGroup.MarginLayoutParams
android.widget.LinearLayout.LayoutParams
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
-
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 setwidthAttr - the width attribute to fetchheightAttr - the height attribute to fetch
Please submit a feedback, bug or feature