Code example for TableRow

Methods: getChildCount

0
        int score = model.playerScore(player, round);
        return score != 0 ? Integer.toString(score) : "";
    } 
 
    public void roundCountChanged() { 
        for (int r = runningScoresHeader.getChildCount(); r < model.roundCount(); r++) {
            TextView roundNumber = newTextView(-1);
            roundNumber.setText(pad(String.valueOf(r + 1)));
            runningScoresHeader.addView(roundNumber);
 
            for (int p = 0; p < model.playerCount(); p++) {
                TextView playerScore = newTextView(p);
                playerScore.setText(getScore(p, r));
                runningScoresRows[p].addView(playerScore);
            } 
        } 
        runningScoresTable.post(scroll);
    } 
 
    private final Runnable scroll = new Runnable() {
        @Override public void run() {