title: Dynamically added EditTexts focus goes from first to last when keyboard next button is clicked
body: <p>I am adding edittext dynamically in a linear layout. when I start editing the first edit text and then press next button on the keyboard, the focus goes to the last one rather than going to the second one. Here is my Activity code..</p>
  
  <pre><code>LinearLayout layout =(LinearLayout) findViewById(R.id.activity_main);
  for (int i = 0; i &lt; 3; i++) {
         final View childView = this.getLayoutInflater().inflate(R.layout.tabitem, null);
         TextView questionText = (TextView) childView.findViewById(R.id.questionId);
         EditText editText = (EditText) childView.findViewById(R.id.enterAnswerTextId);
  
         questionText.setText("Whats up");
         layout.addView(childView);
         childView.setTag(i);
      }
  </code></pre>
  
  <p>Activity is just a Linear Layout. And the tab item layout which I am inflating</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:id="@+id/separatorId"
      android:orientation="horizontal"
      android:layout_height="1dp"
      /&gt;
  
  &lt;TextView
      android:layout_width="wrap_content"
      android:id="@+id/questionId"
      android:layout_height="wrap_content"
      android:paddingLeft="20dp"
      android:paddingTop="20dp"
      android:paddingBottom="15dp"
      /&gt;
  
  &lt;RelativeLayout
      android:id="@+id/enterAnswerLayoutId"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      &gt;
  
      &lt;EditText
          android:id="@+id/enterAnswerTextId"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginRight="20dp"
          android:layout_marginLeft="20dp"
          android:maxLines="1"
          android:layout_centerHorizontal="true"
          android:inputType="textPassword"
          android:hint="Enter Answer"
          android:padding="20dp"
          android:imeOptions="actionNext|actionDone"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>