title: Set Keyboard Mode in android custom keyboard
body: <p>I have created a Custom Keyboard using the Android Keyboard Class. </p>
  
  <p>I want to have Rows for two modes. One is the normal mode. And one is when the user presses the "Sym" button. For each Keyboard.Row for the "Sym" button in the XML i have specified android:keyboardMode="@+id/sym". </p>
  
  <p>Now when i run it only the rows that do not specify the android:keyboardMode display. This is as expected and what the documentation says.</p>
  
  <p>My questions is how do i set the Mode in my code so that the rows with android:keyboardMode="@+id/sym" get rendered?</p>
  
  <pre><code>&lt;Row&gt;
      &lt;Key android:codes="113"    android:keyLabel="q" /&gt;
      &lt;Key android:codes="119"    android:keyLabel="w" /&gt;
      &lt;Key android:codes="101"    android:keyLabel="e" /&gt;
      &lt;Key android:codes="114"    android:keyLabel="r" /&gt;
      &lt;Key android:codes="116"    android:keyLabel="t" /&gt;
      &lt;Key android:codes="121"    android:keyLabel="y" /&gt;
      &lt;Key android:codes="117"    android:keyLabel="u" /&gt;
      &lt;Key android:codes="105"    android:keyLabel="i" /&gt;
      &lt;Key android:codes="111"    android:keyLabel="o" /&gt;
      &lt;Key android:codes="112"    android:keyLabel="p" /&gt;
      &lt;Key android:codes="-5"    android:keyIcon="@drawable/keyboard_backspace_icon" android:keyWidth="91dp" /&gt;
  &lt;/Row&gt;
  &lt;Row android:keyboardMode="@+id/sym"&gt;
      &lt;Key android:codes="113"    android:keyLabel="+" /&gt;
      &lt;Key android:codes="119"    android:keyLabel="_" /&gt;
      &lt;Key android:codes="101"    android:keyLabel="=" /&gt;
      &lt;Key android:codes="114"    android:keyLabel="%" /&gt;
      &lt;Key android:codes="116"    android:keyLabel="^" /&gt;
      &lt;Key android:codes="121"    android:keyLabel="|" /&gt;
      &lt;Key android:codes="117"    android:keyLabel="&amp;lt;" /&gt;
      &lt;Key android:codes="105"    android:keyLabel="&gt;" /&gt;
      &lt;Key android:codes="111"    android:keyLabel="[" /&gt;
      &lt;Key android:codes="112"    android:keyLabel="]" /&gt;
      &lt;Key android:codes="-5"    android:keyIcon="@drawable/keyboard_backspace_icon" android:keyWidth="91dp" /&gt;
  &lt;/Row&gt;
  </code></pre>