アドバイスをお願いします。混合要素を含む動的レイアウトを作成したい[テキスト][チェックボックス][ボタン][テキスト][チェックボックス][ボタン][テキスト][チェックボックス][ボタン].....。
サンプルコードを教えてください。
final TableLayout Tlayout = new TableLayout(getApplicationContext());
Trow = new TableRow(getApplicationContext());
checkBox = new CheckBox(getApplicationContext());
Trow.addView(checkBox);
button = new Button(getApplicationContext());
button.setText("Button");
Trow.addView(button);
textBox = new EditText(getApplicationContext());
textBox.setText("default_value");
Trow.addView(textBox);
Tlayout.addView(Trow);
このコードは、動的フォーム要素の作成に役立つ場合があります。