Example usage for android.widget TableLayout getChildCount

List of usage examples for android.widget TableLayout getChildCount

Introduction

In this page you can find the example usage for android.widget TableLayout getChildCount.

Prototype

public int getChildCount() 

Source Link

Document

Returns the number of children in the group.

Usage

From source file:com.samknows.measurement.activity.SamKnowsAggregateStatViewerActivity.java

private void clearGrid(int grid) {
    TableLayout table = (TableLayout) findViewById(grid);
    int count = table.getChildCount();
    for (int i = 0; i < count; i++) {
        View child = table.getChildAt(i);
        ((ViewGroup) child).removeAllViews();
    }/*from  w  w  w .j  a  v a2 s  .c  o  m*/
}