0
0
mirror of https://github.com/florisboard/florisboard.git synced 2024-09-20 03:52:18 +02:00
Commit Graph

2020 Commits

Author SHA1 Message Date
Patrick Goldinger
e1de54e24e Cleanup code (formatting & unused imports only) 2020-04-13 23:54:40 +02:00
Patrick Goldinger
55b4385c3a Fully implement loading and management functionality for LayoutManager
LayoutManager is now solely responsible for fetching the layout from the app's resource folder and will also automatically based on the shared prefs (NYI, currently static strings) fetch the layout associations. CustomKeyboard can now ask to get a computed layout from LayoutManager. LayoutManager then automatically decides based on the given keyboard mode, how to squish the layouts together. This way the keyboard class now only has to render the layout, not compute it too.
2020-04-13 23:44:45 +02:00
Patrick Goldinger
18dfe3eb5c Rework the code base further
- CustomKey is now named KeyView
- LayoutManager will now be responsible for loading Layouts
- Key's data like code, type, etc. is now stored in a KeyData object (KeyView.data)
- Layouts are now preloaded as LayoutData and computed when requesting for the needed keyboard mode
2020-04-13 19:17:40 +02:00
Patrick Goldinger
2c2206ca62 Create layout for character control 2020-04-13 19:13:42 +02:00
Patrick Goldinger
1324f6a9ef Create util sub-package 2020-04-13 19:12:56 +02:00
Patrick Goldinger
8f7b875a3d Structure Kotlin files in sub-packages
- Design is currently completely messed up (both code & UI)
- Goal of structuring: allowing a more clean codebase
2020-04-13 03:34:05 +02:00
Patrick Goldinger
8201970bb4 Add Key/Keyboard constants 2020-04-13 03:32:01 +02:00
Patrick Goldinger
69c4d0947e Implement extended popup style and rendering 2020-04-13 00:05:14 +02:00
Patrick Goldinger
310e7263ab Implement editor action functionality for enter key 2020-04-12 12:03:39 +02:00
Patrick Goldinger
91ecb046de Delete qwerty.xml
- Layouts are now defined inside res/raw/* and are of type JSON
2020-04-12 03:02:50 +02:00
Patrick Goldinger
9262fda63a Fix correct rendering and positioning of icons
- Switched from png to svg resources
- Icons use vector padding to gain the centered effect on the button
- Implement caps lock feature
- Code cleanup in CustomKey.kt
2020-04-12 02:26:47 +02:00
Patrick Goldinger
14873b1d55 Delete keyboard.xml
- Was previously a placeholder for the CustomKeyboard, now not needed anymore
2020-04-11 20:44:53 +02:00
Patrick Goldinger
6a04447c5c Clean up root layout
- Fully shift popup logic to KeyPopupManager
- Root layout now directly uses customKeyboard in layout (remove 1 layer of unnecessary LinearLayout)
2020-04-11 20:43:21 +02:00
Patrick Goldinger
f21ecc04d0 Add KeyPopupManager class
- Key popup creation and calculations are now done in the KeyPopupManager (Keyboard.popupManager contains instance of this manager)
2020-04-11 19:42:27 +02:00
Patrick Goldinger
d2fc8c5cf1 Implement popup and update Ui redraw logic 2020-04-11 18:07:57 +02:00
Patrick Goldinger
cc2828b600 Implement delete hold, base for popup 2020-04-11 03:43:21 +02:00
Patrick Goldinger
570e384cec Add missing files from previous commit 2020-04-11 03:42:26 +02:00
Patrick Goldinger
0130ff2ddf Rewrite core implementation of keyboard layout
- Keyboard layout is now programmatically built, insteadof a predefined <layout>.xml file
- Layout definitions are in JSON (located in res/raw/*)
- Buttons now have a background color
2020-04-11 00:02:18 +02:00
Patrick Goldinger
a1e3d4eb8a Add initial layout of keyboard
- Setup AndroidManifest.xml to register this app as an valid IME
- Layout of keyboard is made with LinearLayout, Buttons and Google's Flexbox project
- Basic icons for caps, backspace, confirm and language_switch have been added from the default Google Icon Library
- Input, Confirm, Delete and Caps lock is working on a very basic implementation
2020-04-10 00:24:22 +02:00
Patrick Goldinger
985613d2bd Initial commit 2020-04-08 23:21:33 +02:00