Welcome to the Hello World Keyboard project! This custom Android keyboard is a perfect starting point for first-time Android developers interested in exploring custom keyboard development. The keyboard features three simple buttons that input “hello”, “world”, and “keyboard”.
These instructions will guide you through forking the project, making it your own, and setting up a development environment for testing and further development.
Use this custom GPT trained on this repo to learn more about the project and how to make your own keyboard!
Chat with HelloWorldKeyboard GPT
Before you start, ensure you have Android Studio installed, the official IDE for Android app development:
https://github.com/modularizer/helloworldkeyboard
.Use this template
button near the top of the page and click on it to generate a new repository in your GitHub account using HelloWorldKeyboard as a template.Code
to reveal the clone options.File
> New
> Project from Version Control
.Clone
.Tools
> Device Manager
.Create Device
to set up a new Android Virtual Device (AVD).Configuring to Run the HelloWorldKeyboard Service:
In Android Studio, go to Run
> Edit Configurations...
and set the Launch Options
to Nothing
and the Launch
dropdown to Nothing
.
This is because unlike other apps, there is no “app” to launch for a keyboard, it is simply enabled in the system settings and activated when a text field is selected.
Settings
app (you can find it by swiping up on the home screen and searching for ‘Settings’).System
> Languages & input
> On-screen keyboard
> Manage on-screen keyboards
.Hello World Keyboard
.Note: It’s helpful to keep the README open as you go through these steps. If you encounter any difficulties, refer back to the detailed instructions provided.
app/src/main/java/com.example.helloworldkeyboard/KeyboardService.kt
: Main service for keyboard logic.app/src/main/res/keyboard_layout.xml
: Layout file for the keyboard UI.app/src/main/res/values/strings.xml
: Strings file for keyboard UI text.app/src/main/AndroidManifest.xml
: App declarations and configurations.keyboard_layout.xml
for UI changes.KeyboardService.kt
for different key actions.This project is open to contributions with the goal of making an absolute bare-bones keyboard for first-time Android developers, encouraging best practices and good coding habits while also providing a starting point for further development. Feel free to fork this repository, make your changes, and submit pull requests to contribute to this project.
This project is 100% open source and free to use for any purpose. This project is licensed under the Unlicense - see the LICENSE file for details.