내가 만든 버튼 배열의 버튼 크기를 조정하려고하지만,어떻게 버튼 배열에 버튼 크기를 조정하려면
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.game);
final TableLayout container = (TableLayout) findViewById(R.id.tableLayout5);
Button btn[][] = new Button[10][10];
for(int i = 0; i<10; i++){
for(int j = 0; j<10; j++){
btn [i][j] = new Button(this);
container.addView(btn[i][j],i);
}
}
}
당신은 버튼 크기를 조정하여 무엇을 의미합니까? 설정 한 후에 크기를 설정하거나 크기를 변경하는 것을 의미합니다. – Azad