title: How to map accented characters in keyboard xml
body: <p>I have to implement a simple custom soft-keyboard in my application and I want to show accented characters on the keyboard too.</p>
  
  <p>These are:
  í, é, á, ű, ú, ő, ó, ü, ö</p>
  
  <p>My question is how to map these in the keyboard xml? What are the key codes for these? I could not found them in the official <a href="http://developer.android.com/reference/android/view/KeyEvent.html" rel="nofollow">KeyEvent</a> document.</p>
  
  <p>My current keyboard definition xml looks like this:</p>
  
  
  
  <pre><code>&lt;Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
      android:keyWidth="10%p"
      android:horizontalGap="0px"
      android:verticalGap="0px"
      &gt;
  
  &lt;Row android:keyHeight="16%"&gt;
      &lt;Key android:codes="45" android:keyLabel="q" android:keyEdgeFlags="left"/&gt;
      &lt;Key android:codes="51" android:keyLabel="w"/&gt;
      &lt;Key android:codes="33" android:keyLabel="e"/&gt;
      &lt;Key android:codes="46" android:keyLabel="r"/&gt;
      &lt;Key android:codes="48" android:keyLabel="t"/&gt;
      &lt;Key android:codes="54" android:keyLabel="z"/&gt;
      &lt;Key android:codes="49" android:keyLabel="u"/&gt;
      &lt;Key android:codes="37" android:keyLabel="i"/&gt;
      &lt;Key android:codes="43" android:keyLabel="o"/&gt;
      &lt;Key android:codes="44" android:keyLabel="p" android:keyEdgeFlags="right"/&gt;
  &lt;/Row&gt;
  
  &lt;Row android:keyHeight="16%"&gt;
      &lt;Key android:codes="?" android:keyLabel="ö" android:keyEdgeFlags="left"/&gt;
      &lt;Key android:codes="?" android:keyLabel="ő"/&gt;
      &lt;Key android:codes="?" android:keyLabel="ü"/&gt;
      &lt;Key android:codes="?" android:keyLabel="ű"/&gt;
      &lt;Key android:codes="?" android:keyLabel="ó"/&gt;
      &lt;Key android:codes="?" android:keyLabel="é"/&gt;
      &lt;Key android:codes="?" android:keyLabel="á"/&gt;
      &lt;Key android:codes="?" android:keyLabel="í" android:keyEdgeFlags="right"/&gt;
  &lt;/Row&gt;
  &lt;/Keyboard&gt;
  </code></pre>