Can someone make a tutorial for Custom Layouts? #1118
Replies: 3 comments 8 replies
-
I haven't found a tutorial on this subject either, but if you read the Layout.md file carefully, you'll already be able to do a lot of customization. In addition, don't hesitate to take a look at what's already there (for example, the custom AZERTY layout in the "Languages & Layouts" setting or the numpad layout in the "Advanced" setting). Finally, don't hesitate to ask the community; personally, I'm pretty quick to respond on these kinds of topics, having spent a few hours working out my custom layout. Edit: @jirkacapek123 |
Beta Was this translation helpful? Give feedback.
-
Btw I recently added a GitHub wiki and made it editable for everyone. So if someone has a tutorial, or otherwise more helpful information than what I put in the layouts file, that's where they could share it. |
Beta Was this translation helpful? Give feedback.
-
I'm also finding it surprisingly difficult to figure out how to get started with creating a custom layout. This is not due to difficulties with JSON, as I have plenty of experience working with JSON (and code in general), but rather a lack of clear information on the high-level approach needed. So I strongly agree with the OP that a tutorial would be super helpful. In the absence of a tutorial, I tried to read as much of the relevant docs as possible. I found both of these:
but they both seemed to focus on the file format of layouts and didn't explain anything about how to test a new layout file. At first I got the impression that the only way to create a new layout was to fork the repo, follow these instructions, and then build and sideload a custom version of the app, which would be very time-consuming for anyone not super familiar with Android development. But then I found https://github.com/Helium314/HeliBoard/wiki/Customization#layouts which explains a different way which apparently allows adding new layouts directly within the app, without any code changes or recompilations required. So I added a new section at the top of this wiki page trying to make it easier for others to find this out. However now I can't find a good JSON layout as a starting point. I found
I'm also confused why there are these two documents with overlapping content. Should we just use one and ignore the other? Or do we need to read both? Can't they just be merged into a single source of truth to avoid confusion? Would be really grateful for answers to any/all of these questions, as I'm currently very confused. |
Beta Was this translation helpful? Give feedback.
-
I just can't find a good source of information on how to create your own layouts, or what keycodes to use or just the general rules on how to write the custom layout. I would be so glad for this and I also think others would also want this.
Beta Was this translation helpful? Give feedback.
All reactions