title: Creating custom popup keyboard for alternative keys
body: <p>I'm trying to create a custom popup keyboard for alternative keys in android. By using the default keyboard only customization I can do is to provide a custom layout for pop keyboard.</p>
  
  <p>I need customize the behaviour as well (Like the one in the <strong>Gboard</strong>)  Such as,</p>
  
  <p>(1) when a button is long pressed, by default it should highlight an specific key </p>
  
  <p>(2) Keys can be highlighted and also selected by moving the finger(long press the key and move the finger same time)</p>
  
  <p>These are the links I referenced:</p>
  
  <p><a href="http://www.blackcj.com/blog/2016/03/30/building-a-custom-android-keyboard/" rel="noreferrer">Building a custom android keyboard</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7752580/creating-a-softkeyboard-with-multiple-alternate-characters-per-key">Creating a SoftKeyboard with Multiple/Alternate characters per key</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7770099/how-do-you-disable-the-softkeyboard-key-preview-window">How do you disable the SoftKeyboard key preview window?</a></p>
  
  <p>This is the popup keyboard in Gboard
  <a href="https://i.stack.imgur.com/qQfAr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qQfAr.png" alt="enter image description here"></a></p>
  
  <p>Any suggestions/help would be appreciated.</p>
  
  <p>Thank you.</p>