ボタンの複数の edittext、onclick に設定されたテキスト値が必要です。編集テキストは動的に生成され、特定の各編集テキストの値が必要です。そのテキストの値を文字列配列に格納します。これがコードです。
if (type.equalsIgnoreCase("Edittext")) {
Question = cursor1.getString(cursor1
.getColumnIndex(AndroidOpenDbHelper.QUESTIONS));
String ID = cursor1.getString(cursor1
.getColumnIndex(AndroidOpenDbHelper.ID));
// ll_layout1 = (LinearLayout)
// findViewById(R.id.linearlayout1);
tv_edittext = new TextView(this);
tv_edittext.setTextSize(20.0f);
tv_edittext.setText(Question);
ll_layout1.addView(tv_edittext);
et = new EditText(this);
et.setOnClickListener(this);
et.setId(EDITTEXT);
et.setMinLines(1);
et.setMaxLines(3);
// editTextList.add(et);
ll_layout1.addView(et);
// editTextList.add(et);
typelist.add(Question);
}
このコードはTextを生成し、edittextを開始する方法は...?ありがとうございます。