Code example for TableLayout

Methods: getChildAt

    // return the specified TableRow 
    private TableRow getTableRow(int row){
        return (TableRow) buttonTableLayout.getChildAt(row);
    // parses the player file name and returns the player name 
    private String getPlayerName(String name){
        return name.substring(name.indexOf('-') + 1).replace('-', ' ');
    // method submitGuess called when user selects an answer 
    private void submitGuess (Button guessButton){
        String guess = guessButton.getText().toString(); 
Contextual code suggestions in your IDE  Get Codota for Java