abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2View.java
AgeCommit message (Collapse)AuthorFilesLines
2022-03-05Improve the code for dynamic updates of the layoutJules Aguillon1-22/+1
2022-02-27Reduce the text size for some keysJules Aguillon1-2/+2
The symbols are now smaller for Shift, Space, Backspace, Delete and some keys on the bottom row. The previous rule was to make the text smaller for symbols made of several characters. This is changed to a flag approach.
2022-02-27Compute text size depending on actual row heightJules Aguillon1-19/+25
Use the height of the row currently being rendered instead of the base row size. Concretely, the bottom row is slightly smaller and will get slightly smaller text. Also: - Rewrite the label rendering code - Render labels at the middle of the key (was slightly off)
2022-02-27Compute text size relative to key heightJules Aguillon1-5/+6
Instead of a fixed size that don't work at all for bigger screens. Other tweaks: - Use the value-land dimens to vary 'extra_horizontal_margin' - Move label size to Config, because it can change at runtime (rotation) - Slightly decrease the size of "long" symbols
2022-02-20Move pointer handling code to its own classJules Aguillon1-267/+91
Separate the concerns and have a clearer interface between the two parts of the code.
2022-02-06Allow egde keys instead of corner keys (swipe vertically/horizontally)Max Schillinger1-16/+54
Add a new boolean parameter "edgekeys" for defining keys that have the additional (swipe) keys on the edges (top, right, left, bottom) instead of at the corners (top left, top right, bottom left, bottom right).
2022-01-30Improve Action key detectionJules Aguillon1-8/+1
There were two problems: - The Action key was swapped when it shouldn't be. The flag 'IME_FLAG_NO_ENTER_ACTION' wasn't interpreted correctly for inputs that specified both an action and this flag. - The value 'IME_ACTION_UNSPECIFIED' should remove the Action key.
2022-01-15Fix miscalculation of the space between the keysJules Aguillon1-7/+7
'keyVerticalInterval' was mistakenly used to compute the height of the keyboard and the vertical position of keys. While the code handling pointers did not use this value, the hit box of the bottom row was shifted by several pixels. Make sure 'keyVerticalInterval' is only used for rendering and not for placing the keys.
2022-01-10Swap the Enter and Action keys when neededJules Aguillon1-2/+11
When IME_FLAG_NO_ENTER_ACTION is set.
2022-01-09Add the Action keyJules Aguillon1-2/+11
It is placed on the top-right of the enter key on every layouts. It sends a special event (performEditorAction) instead of writing a newline. The "actionId" is passed through the EditorInfo object in an obfuscated way so it's not clear whether it's using the right one.
2022-01-09Allow to hide more keys than just accentsJules Aguillon1-2/+2
Add the "FLAGS_LANGS" set of flags, which will be used to hide individual keys that are not accents.
2021-12-30Improve the "precision" optionJules Aguillon1-2/+2
Now named "swiping distance". Changed to a dropdown.
2021-12-30Move the border radius from Config to ThemeJules Aguillon1-4/+2
Also, draw activated keys with a round border too.
2021-12-28Separate "handler" codeJules Aguillon1-2/+2
As with the previous commit, remove casts of the context. The "handler" object is referenced in the "config" object for now.
2021-12-28Turn Config into a singleton objectJules Aguillon1-3/+3
The goal is to remove a cast of the 'context' into 'Keyboard2'.
2021-12-26Move Theme code to its own classJules Aguillon1-50/+14
2021-12-19Auto-format Java and XML filesJules Aguillon1-298/+298
Use xmllint. Re-indent Java files using spaces.
2021-12-05Avoid using getWidth() from onMeasure()Jules Aguillon1-6/+7
2021-05-09Add the accents preferenceJules Aguillon1-6/+6
This replaces the "disable accent keys" checkbox. The default should work for anyone: Accents will be hidden unless the user has the french language installed. The value "show every accents" is useful for versions of android that don't have subtypes.
2021-05-01Fix rendering of the first labelJules Aguillon1-7/+8
Caused by a shared Paint not correctly resetted.
2021-04-29Highlight activated keysJules Aguillon1-10/+37
2021-04-29Slightly reduce the size of the bottom rowJules Aguillon1-20/+18
2021-04-29Fix modifiersJules Aguillon1-42/+60
Fixes: - Toggling off a modifier was not possible in the corners (eg. accents). - Modifiers on the same key can't be activated at the same time. - Characters on the same key as a modifier weren't working properly.
2021-04-29Add the "layout" option againJules Aguillon1-2/+5
Some versions of android don't allow to configure several languages.
2021-04-25Tweak dimensionsJules Aguillon1-8/+8
Increase a bit labels size and reduce empty space between keys.
2021-04-24Scale down larger symbolsJules Aguillon1-7/+17
2021-04-24Add the label size optionJules Aguillon1-1/+1
2021-04-24Allow different sizesJules Aguillon1-42/+42
Improve Paint code.
2021-04-20Disable vibration when holding keysJules Aguillon1-4/+0
2021-04-20Add a setting for precise repeatJules Aguillon1-1/+1
2021-04-20Add precise repeat on some keysJules Aguillon1-5/+18
Repeat speed increase as the pointer is away from the initial position. On arrows, backspace and delete.
2021-04-18Separate handling of modifiers from KeyValue classJules Aguillon1-10/+12
KeyValue defines an ADT and some of its values, it now contains public final fields and no internal logic. KeyModifier handles modifiers and accents and creates new instances of KeyValue when needed. This operation is now properly cached.
2021-04-18Hide the input switching key if it's not neededJules Aguillon1-4/+5
Android has a new way of switching between input methods and this key need to be hidden in most cases.
2021-04-17Remove fixed keyboard widthJules Aguillon1-15/+8
Remove the constant of keys per rows. Add the 'shift' attribute to declare eventual alignment/blanks in layouts.
2021-04-15Stateless KeyboardData classJules Aguillon1-3/+6
It was a pain to use. It was also a pain to write this though.
2021-01-05Remove the preview popupJules Aguillon1-21/+0
This was a half-finished feature: - Dangerous when typing passwords - Caused crash on some devices - Ugly (on its own but also blinking when sliding and not fixed in size)
2015-10-29Move configs to Config objectjaguillo1-93/+50
2015-10-28preview_enabled settingsjaguillo1-2/+5
2015-10-28Improve preview popupjaguillo1-5/+18
2015-10-28A bit of stylejaguillo1-0/+2
2015-10-28Fix some bugs + Try to show a preview popupjaguillo1-6/+30
2015-10-24Emoji panejaguillo1-33/+36
2015-10-23Start with emojisjaguillo1-1/+1
2015-10-13Special key font + Esc keyjaguillo1-31/+58
2015-10-11Key to switch to numeric panejaguillo1-8/+5
2015-10-03Perf improvement (small)jaguillo1-10/+15
2015-09-30Add margin_bottom, key_height and horizontal_margin configsjaguillo1-7/+10
2015-08-18Accentjuloo1-7/+8
2015-08-18Fix key repeat on meta keys and empty keysjuloo1-1/+2
2015-08-08More settingsjuloo1-12/+5