I am currently studying soft keyboard implementation in android. One thing I am confused with is where to implement the popup little square when you press any key (I attach two example below).
I have read through the sample app "Soft Keyboard" provided in SDK, it has this feature, but I can't find which piece of code implements it.
Any ideas how I could implement/modify it?

android default keyboard

 
     
    