Class TableRow.LayoutParams

Enclosing class:
TableRow

public static class TableRow.LayoutParams extends LinearLayout.LayoutParams

Set of layout parameters used in table rows.

See Also:
  • Field Details

    • column

      public int column

      The column index of the cell represented by the widget.

    • span

      public int span

      The number of columns the widgets spans over.

  • Constructor Details

    • LayoutParams

      public LayoutParams(int w, int h)

      Sets the child width and the child height.

      Parameters:
      w - the desired width
      h - the desired height
    • LayoutParams

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

      Sets the child width, height and weight.

      Parameters:
      w - the desired width
      h - the desired height
      initWeight - the desired weight
    • LayoutParams

      public LayoutParams()

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

    • LayoutParams

      public LayoutParams(int column)

      Puts the view in the specified column.

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

      Parameters:
      column - the column index for the view
    • LayoutParams

      public LayoutParams(ViewGroup.LayoutParams p)
    • LayoutParams

      public LayoutParams(ViewGroup.MarginLayoutParams source)