title: SetNextFocusDownId not behaving correctly
body: <p>I have been struggling with my Android application lately. In my application I have a TableLayout that I dinamically populate within the app code, including an EditText in each cell and the soft keyboard's "Next" button was not behaving correctly (jumping to the next row before getting to the other cells in the same row). So I decided to manually override the focus change by assigning IDs to the EditTexts and then using the setNextFocusDownId method to point to the next EditText. But this didn't work either.</p>
  
  <p>I'll explain the situation.
  My app has a TableLayout with three columns, this way:</p>
  
  <pre><code>EditText(1)      EditText(5)       EditText(10)
  EditText(50)     EditText(100)     EditText(160)
  EditText(500)    EditText(1000)    EditText(1600)
  EditText(2500)   EditText(3000)    EditText(3500)
  EditText(3800)   EditText(4000)    EditText(4500)
  </code></pre>
  
  <p>Where the numbers inside the brackets are the IDs of the EditText. While populating this TableLayout I save the list of EditTexts in an ArrayList named focusList so I can assign the NextFocus Id later. After populating the table, I call this method: </p>
  
  <pre><code>private void manageFocusList() {
      for (int i=0; i&lt;focusList.size()-1; i++){
          focusList.get(i).setImeOptions(0x05);
          focusList.get(i).setNextFocusDownId(focusList.get(i+1).getId());
      }
  
      focusList.get(focusList.size()-1).setImeOptions(0x06);
  
  }
  </code></pre>
  
  <p>The list of EditText is properly sorted in the ArrayList and the links between the EditTexts are succesfully done.<br>
  To test this I put some print traces when I press the Next button in the soft keyboard. This is what I get:</p>
  
  <pre><code>01-07 19:34:32.121: I/System.out(27287): My ID is: 1
  01-07 19:34:32.121: I/System.out(27287): NextFocusDown: 5
  
  01-07 19:34:32.521: I/System.out(27287): My ID is: 5
  01-07 19:34:32.521: I/System.out(27287): NextFocusDown: 10
  
  01-07 19:36:50.146: I/System.out(27287): My ID is: 10
  01-07 19:36:50.146: I/System.out(27287): NextFocusDown: 50
  </code></pre>
  
  <p>and so on...</p>
  
  <p>But in the application, it jumps this way:</p>
  
  <pre><code>1-&gt;5
  5-&gt;50
  50-&gt;100
  100-&gt;160
  160-&gt;1600
  1600-&gt;1000
  1000-&gt;500
  500-&gt;2500
  </code></pre>
  
  <p>and from now on it continues doing it right</p>
  
  <pre><code>2500-&gt;3000
  3000-&gt;3500
  3500-&gt;3800
  3800-&gt;4000
  4000-&gt;4500
  </code></pre>
  
  <p>I tested both in a Samsung Galaxy S3 and in the emulator and the behaviour is exactly the same.<br>
  I hope you can help me!<br>
  Thank you for your time!</p>