TableLayout.SetColumnCollapsed(Int32, Boolean) Method

Definition

Collapses or restores a given column.

[Android.Runtime.Register("setColumnCollapsed", "(IZ)V", "GetSetColumnCollapsed_IZHandler")]
public virtual void SetColumnCollapsed (int columnIndex, bool isCollapsed);
[<Android.Runtime.Register("setColumnCollapsed", "(IZ)V", "GetSetColumnCollapsed_IZHandler")>]
abstract member SetColumnCollapsed : int * bool -> unit
override this.SetColumnCollapsed : int * bool -> unit

Parameters

columnIndex
Int32

the index of the column

isCollapsed
Boolean

true if the column must be collapsed, false otherwise

Attributes

Remarks

Collapses or restores a given column. When collapsed, a column does not appear on screen and the extra space is reclaimed by the other columns. A column is collapsed/restored only when it belongs to a android.widget.TableRow.

Calling this method requests a layout operation.

Java documentation for android.widget.TableLayout.setColumnCollapsed(int, boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to