Code example for TableLayout

Methods: getChildCount

0
    	 
    } 
       
    public void deleteRow(View v){
    	 
    	if(this.tl_data.getChildCount()-1>0){
    		this.tl_data.removeViewAt(this.tl_data.getChildCount()-1);
    		this.rowList.remove(this.tl_data.getChildCount()-1);
    	} 
    } 
     
     
     
    private Persona generateNewPersona(){ 
    	Persona persona = new Persona();
    	persona.setId(counter++);
    	persona.setName(this.randomString());
    	persona.setLastname(this.randomString());
    	return persona;
    }