Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom popup for key of keyboard

I am making custom keyboard.. Now my question is that I want custom popup for key pressed. So, can I change it. popup of key like as this image

enter image description here

If any one know about this then please help me...

CapDroid

like image 843
Niranj Patel Avatar asked Oct 12 '22 01:10

Niranj Patel


1 Answers

Yup, its not too hard at all. Just check out the time in the AOSP here. It's all done in the resource files, here is a short snippet. From the symbols.xml file of my keyboard project.

<Key android:codes="49" android:keyLabel="1" android:keyEdgeFlags="left"
     android:popupKeyboard="@xml/kbd_popup_template"
     android:popupCharacters="¹½⅓¼⅛"/>
like image 162
Nathan Schwermann Avatar answered Oct 30 '22 16:10

Nathan Schwermann