Get data from programmatically added view
<p>Could somebody help me?</p>

<p>For example, there is the following layout:</p>

<p><strong>main.xml:</strong></p>

<pre><code>&lt;LinearLayout
    android:id="@+id/linearLayout_item"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;LinearLayout
        android:id="@+id/linearLayout_item_name"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" &gt;

        &lt;EditText
                android:id="@+id/editText_item_name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" /&gt;

        ... Other views, skipped ...

    &lt;/LinearLayout&gt;
    &lt;Button
        android:id="@+id/button_add_alias"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" /&gt;

    &lt;Button
        android:id="@+id/button_commit" 
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>I use <code>button_add_alias</code> to add views as they needed.</p>

<pre><code>((Button) findViewById(R.id.button_add_alias))
        .setOnClickListener(new View.OnClickListener() {
            int position = 1;
            public void onClick (View v) {
                View view = getLayoutInflater().inflate(R.layout.alias, null);
                ((LinearLayout) findViewById(R.id.linearLayout_item)).addView(view, position);
                position++;
            }
    });
</code></pre>

<p><strong>alias.xml:</strong></p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/linearLayout_alias"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal" &gt;

    &lt;EditText
        android:id="@+id/editText_alias"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/&gt;

    ... Other views, skipped ...

&lt;/LinearLayout&gt;
</code></pre>

<p>So, what is the best way to get data from programmatically added <code>editText_alias</code> views?</p>
