Code example for TableRow

Methods: addView

0
//		this.addView(button2); 
		 
//		TableView table = new TableView(context); 
		 
		for(int k=0; k<4; k++){
			TableRow row = new TableRow(context);
		 
			for(int i=1;i<8;i++)
			{ 
				Button b = new Button(context);
				b.setText(String.valueOf(i));
				row.addView(b);
			} 
		 
			this.addView(row);
		 
		} 
		this.setVisibility(View.VISIBLE);
		 
	} 
Experience pair programming with AI  Get Codota for Java