I have found this library for emoticons in android:-
https://github.com/ankushsachdeva/emojicon
In this, I am having a problem how to combine this code with my android soft keyboard or how do I deploy the emojicons tab on button click.
Note that I don't have any main activity as it is just a keyboard app.
I have almost same code as that of Android Soft Keyboard here:-
https://android.googlesource.com/platform/development/+/master/samples/SoftKeyboard/src/com/example/android/softkeyboard/SoftKeyboard.java
I have to do this just like it is done in Kika Keyboard.
You should bind any keyboard key with inflation and replacement of a view with emoji pane.
Then send a proper unicode (emoji) to the InputConnection.
Related
Keyboard handling is still a major setback in Android app development. Let me be specific about my question, I want to provide animation for soft keyboard appearance. I know it is not feasible directly but do anyone know any workaround / tweaks & tricks for this?
you can try creating a custom soft keyboard and register your edittext to load this keyboard (take a look at the plethora of custom keyboards you can use https://android-arsenal.com/tag/232)
An example is "Floating KeyboardView" https://android-arsenal.com/details/1/5247 shows you how you can customise your keyboard.
Use it as normal keyboard view and
Place FloatingKeyboardView inside a FrameLayout or a RelativeLayout
(TIP: Put it last or/and with some elevation)
Make an xml with your keyboard layout
(https://developer.android.com/reference/android/inputmethodservice/Keyboard.html)
Declare it in activity code
FloatingKeyboardView mCustomKeyboard = (FloatingKeyboardView) findViewById(R.id.keyboardview);
Assign the keyboard layout
mCustomKeyboard.setKeyboard(new Keyboard(this, R.xml.numkbd));
Register edittexts to use it
mCustomKeyboard.registerEditText(R.id.edittext1);
I am building an Android app for OS level kitkat and above.
I want to open keyboard with default emojicons on button click.
Can I show keyboard with direct emojicon layout?
Thanks in advance.
I don't know whether it is possible to directly open emoji keyboard you can refer some emoji keyboard library
https://github.com/chiragjain/Emoticons-Keyboard
https://github.com/ankushsachdeva/emojicon
Is it possible to change the background color of soft keyboard when it popups on screen. That is having full control of the native android keyboard and customized it at will.
No, you can not change background color of android soft keyboard while it pops up. For that you have to make you own soft keyboard.
And if you want to customize android native key board then you can do it. Take source code of LatinIME from Android repository and modify it by taking care of Open source licence.
Also check http://developer.android.com/guide/topics/text/creating-input-method.html
I want to add following set of emojis in my soft keyboard for messaging purpose. Can anyone help me out how to proceed with this.
I wish to add custom buttons to the android IME. So I have created an InputMethodService extension as done with soft keyboard sample from code samples. But in SoftKeyboard sample a candidate view is been used to add predictive text. So I was try to use the same approach but how can I listen to onclick events when I add button on the candidate view. Is this the best way to add buttons above keyboard?
How can I change the background of each letter in the keyboard already provided or even change the buttons?
Thanks,
nil