Page 1 of 1

Swype keyboard - widget

Posted: 02 Aug 2019 22:17
by sirlaacher
Hi. I want make widget like this.
Screenshot_20190803-001335.png
Screenshot_20190803-001335.png (14.49 KiB) Viewed 17045 times
So basic is like copy paste, next, forward function. Its is possible to make 4x4 visual like that?

Re: Swype keyborad - widget

Posted: 03 Aug 2019 01:18
by Desmanto
Of course you can. If you really want the exact same icon as that, you can open Swype keyboard apk using archive opener (MiXplorer can do it), browse to the /res/ folder and check the drawable folder for the images you want. Preferably the higher resolution version, xxxhdpi. Extract them out and use it as the image in the widget.

Re: Swype keyborad - widget

Posted: 03 Aug 2019 01:46
by anuraag
It's possible.
I have created similar widget.
Screenshot_20190803-053604_1.png
Screenshot_20190803-053604_1.png (19.33 KiB) Viewed 17031 times

Re: Swype keyborad - widget

Posted: 03 Aug 2019 01:51
by Desmanto
@anuraag : I am curious, do you use the widget to support the keyboard? For copy, cut, paste maybe can be used. But arrow key will have very slow perfomance. And undo/redo works? And how about the shift and ctrl?

Re: Swype keyborad - widget

Posted: 03 Aug 2019 03:58
by anuraag
@Desmanto
No that widget isn't for supporting keyboard. All buttons uses Automagic keyboard. I activate that widget from navbar.

shift and ctrl button sets true/false to global variable. I use that boolean to send shift/ctrl meta key to sendKey function. You need 1.38 for shift key to work.

Whenever i clicks other buttons, Automagic keyboard is activated and uses sendKey function. I have set 3s sleep within flow before switching back to main keyboard and set flow execution policy to 'Stop the currently executing instance and then execute the newer instance'. Got this idea from one of your flow.

Undo, redo works.

I have added 2 paste buttons. One uses ctrl+v and another types text from clipboard to input field (useful when you can't use long tap paste option).

There is no lag when using dpad buttons.