Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GeorgeArgyrakis/FloatingKeyboard
A Draggable and Floating KeyboardView for android that several EditText's can register to use it.
https://github.com/GeorgeArgyrakis/FloatingKeyboard
android drag-and-drop floating keyboard
Last synced: about 23 hours ago
JSON representation
A Draggable and Floating KeyboardView for android that several EditText's can register to use it.
- Host: GitHub
- URL: https://github.com/GeorgeArgyrakis/FloatingKeyboard
- Owner: GeorgeArgyrakis
- License: other
- Created: 2017-02-05T08:53:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-06T08:10:15.000Z (over 5 years ago)
- Last Synced: 2024-02-29T03:37:58.440Z (4 months ago)
- Topics: android, drag-and-drop, floating, keyboard
- Language: Java
- Homepage:
- Size: 1.41 MB
- Stars: 219
- Watchers: 11
- Forks: 46
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-github-android-ui - FloatingKeyboard - 浮动可拖拽的KeyboardView (软键盘)
- awesome-github-android-ui - FloatingKeyboard - 浮动可拖拽的KeyboardView (软键盘)
README
# FloatingKeyboard
A Floating and Draggable KeyboardView for android that several EditText's can register to use it.![Alt text](demo_small.gif?raw=true "FloatingKeaboardView Demo")
## Usage
Use it as normal keyboard view and1. Place `FloatingKeyboardView` inside a `FrameLayout` or a `RelativeLayout` (TIP: Put it last or/and with some elevation)
2. Make an xml with you keyboard layout (https://developer.android.com/reference/android/inputmethodservice/Keyboard.html)
3. Declare it in activity code `FloatingKeyboardView mCustomKeyboard = (FloatingKeyboardView) findViewById(R.id.keyboardview);`
4. Assign the keyboard layout `mCustomKeyboard.setKeyboard(new Keyboard(this, R.xml.numkbd));`
5. Register edittexts to use it `mCustomKeyboard.registerEditText(R.id.edittext1);`Optional but highly recommended:
1. Set a transparent background `android:background="@android:color/transparent"`
2. Disable text shadow `android:shadowRadius="0.0"`
3. Make a drawable selector and use as a key background `android:keyBackground="@drawable/keyback"`## About
Based on the following great guide from Maarten Pennings (http://www.fampennings.nl/maarten/android/09keyboard/)