Toolbar button to turn on or off custom accessibility feature #1192
Closed
AxesandGrinds
started this conversation in
General
Replies: 1 comment 1 reply
-
I think you should be able to achieve that by altering the code in the updateKeys function. You may find your accessibility toolbar key with Then make sure that onClick will call |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to add a feature to your Heliboard virtual keyboard that can be activated and deactivated from the virtual keyboard's toolbar. I need to add a button for the activated state and another button for the deactivated state. This button will always be visible in the keyboard's toolbar whenever the virtual keyboard is open as it is the main feature of my app. After downloading your code, I see that the changes need to be made in several files, such as ToolbarUtils.kt, InputLogic.java, keyCode.kt, and KeyboardIconsSet.kt in order to add the drawable for the icon, position it in the toolbar, and perform an action when it's activated.
My problem is that in your code, I can't seem to find the part of your code that can update the button's drawable (depending on active or inactive state of the feature). Can you give me some general guide on how to do this?
The goal of the feature that I'm trying to add is to provide the user with some custom accessibility function when that button (feature) is activated.
Beta Was this translation helpful? Give feedback.
All reactions