title: increase keyboard height by setting XML dimen variables dynamically
body: <blockquote>
    <p>Hi i am <strong>working on soft keyboard</strong> where i need to <strong>set height</strong> of
    keyboard <strong>dynamically</strong>. My normal <strong>keyboard view before increasing height</strong> is
    like shown below,</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/6M2rs.png" alt="enter image description here"></p>
  
  <blockquote>
    <p>So as per requirement <strong>user can increase height of keys</strong> so after
    setting key's height dynamically keyboard look like shown below,</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/qiYZL.png" alt="enter image description here"></p>
  
  <blockquote>
    <p>To <strong>increase height</strong> of keys i <strong>used below code</strong>,</p>
  </blockquote>
  
  <pre><code>List&lt;Key&gt; keys = myKeyboard.getKeys();
      for(Key key: keys) 
        key.height = 80;
  </code></pre>
  
  <blockquote>
    <p>But as we see in above last image after increasing height of <strong>key's</strong>,
    they are <strong>overlapping</strong> on each other except to increase height of
    keyboard,</p>
  </blockquote>
  
  <pre><code>&lt;Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
      android:keyWidth="10%p"
      android:horizontalGap="0px"
      android:verticalGap="0px"
      android:keyHeight="50dip"&gt;
  </code></pre>
  
  <blockquote>
    <p>As shown in above xml code at <strong>starting key height is 50dip</strong>, then i am
    <strong>changing it dynamically to 80dip</strong> and it is successfully applying to
    key's. On the other hand <strong>if hardcoded key height to 80dip</strong>.</p>
  </blockquote>
  
  <pre><code>android:keyHeight="80dip"
  </code></pre>
  
  <blockquote>
    <p>It is successfully applying like shown below,</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/gbcf1.png" alt="enter image description here"></p>
  
  <blockquote>
    <p>So where i am going wrong. Is there <strong>any other way to increase keyboard
    height dynamically</strong>.</p>
  </blockquote>