A Floating and Draggable KeyboardView for android that several EditText's can register to use it.
Use it as normal keyboard view and
- Place
FloatingKeyboardViewinside aFrameLayoutor aRelativeLayout(TIP: Put it last or/and with some elevation) - Make an xml with you 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);
Optional but highly recommended:
- Set a transparent background
android:background="@android:color/transparent" - Disable text shadow
android:shadowRadius="0.0" - Make a drawable selector and use as a key background
android:keyBackground="@drawable/keyback"
Based on the following great guide from Maarten Pennings (http://www.fampennings.nl/maarten/android/09keyboard/)
