まず、ここに私のコードがあります:
    public class MainActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LinearLayout linLayout = new LinearLayout(this); 
        TextView text=new TextView(this);
        ArrayList<String> recup = recupData();
        List<TextView> lvariables = new ArrayList<TextView>();
        int i = 0;
        for(i=0;i<recup.size();i++){
            text.setText(recup.get(i)+"\n");
            lvariables.add(text);
            linLayout.addView(lvariables.get(i));
        }
        setContentView(linLayout);
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
さて、私の質問は次のとおり です。N個のテキストビュー(ループで生成され、リストに保存されている)を同じレイアウト(たとえば、別のレイアウト)に表示する方法!?
あなたが見ることができるコードで、私は「IllegalState」例外を受け取ります!
念のため、XML ファイルを次に示します。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" >
</RelativeLayout>
(短いですね!? :/ )
この質問が基本的でばかげていることは承知していますが、アンドロイドの哲学がどのように機能するかを脳に理解させることはできません!
StackOverFlow で 100 万回も議論されていたとしても、誰かが私の問題を解決するのに十分な忍耐力を持っているなら、私は本当に感謝しています!
あなたが提供できる助けを本当に感謝します!ああ、お願いします、私の英語を許してください、私はフランス人です... :D