How to add CustomView to my custom keyboard in Android, like GIF keyboard

I create a custom keyboard, it works fine with all keys.

But instead of the whole key, I want to add a custom view similar to a GIF keyboard.

The custom view contains a scrollview with buttons, as shown below.

enter image description here

------- For keyboard with ---- key

@Override public View onCreateInputView() { kv = (KeyboardView)getLayoutInflater().inflate(R.layout.keyboard, null); keyboard = new Keyboard(this, R.xml.qwerty); kv.setKeyboard(keyboard); kv.setOnKeyboardActionListener(this); return kv; } 
+7
android keyboard
source share

No one has answered this question yet.

See related questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
2510
How to keep Android activity state by saving instance state?
1002
Grid motion detection
947
Android Studio: add jar as a library?
572
ViewPager PagerAdapter does not update View
3
How to create a custom keyboard with Gif images in Android? Any tutorial or sample source please?
3
User keyboard containing scrollview
0
How to change themes in user keyboard in android
-4
How to create a custom keyboard with my own Gif and other images in Android? Any tutorial or sample source please?

All Articles