Code example for TableRow

Methods: setPaddingaddView

0
		tLayout.addView(head);
	} 
	 
	private void createOrderedList(String itemName, String itemNum){
		//おねがい情報生成 
		TableRow row = new TableRow(this);
		row.setPadding(20, 0, 0, 30);
		TextView name = new TextView(this);
		name.setText(itemName);
		name.setTextSize(20);
		name.setWidth(380);
		name.setPadding(0, 0, 40, 0);
		row.addView(name);
		 
		TextView num = new TextView(this);
		num.setText(itemNum);
		num.setTextSize(20);
		num.setGravity(Gravity.CENTER_HORIZONTAL);
		row.addView(num);
		tLayout.addView(row);
	} 
	 
	//トップページへ押下した場合 
	public void returnPage(View view){
Connect your IDE to all the code out there  Get Codota for Java