Linux Format

Write your own Android application

KIVY

Credit: https:// kivy.org

In this article, we are exploring Kivy, learning about its GUI language and how this links back to Python code and developing an application that can run on multiple platforms. Kivy is supported on Windows, Mac OS, Linux, Android and iOS.

By the end of this article, we will have developed an app that runs on desktop Linux as well as Android. We will also have introduced the necessary concepts to create a simple stopwatch application, rendered our simple user interface, written the logic to update the text and perform the counting function, as well as compiling an APK that can be installed on Android devices.

The complete code can be downloaded from https://github.com/mattmole/LXF310-Kivy-Stopwatch. So, without further ado, let’s begin.

The first thing to introduce is design language and how this links back to the Python code. As in other GUI frameworks, GUI elements can be defined within a supporting file, which means that the Python code itself can be less cluttered, due to the GUI elements being defined elsewhere. does seem to have more of a crossover with the code as variables from the Python code can be referenced within the KV design file. For example, you could reference a variable in

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format2 min read
OBS Studio
Version: 30.0.2 Web: https://obsproject.com There are lots of good options for recording screencasts, but if you want to live-stream T your desktop, one of the best options is OBS Studio. The app works with all the major online streaming providers, s
Linux Format1 min read
Wine For Wayland
2023 was a great year for the Wayland driver for Wine. The goal was to move forward from the experimental phase and make the driver a proper upstream component. A year later, after several merge requests, many people are now already able to use the l
Linux Format2 min read
Back Issues Missed One?
ISSUE 313 April 2024 Product code: LXFDB0313 In the magazine Discover how to use the ultimate hacker’s toolkit, staying out of trouble while doing so. And join us as we take the Puppy Linux developer’s new distro for a run and explore its container

Related Books & Audiobooks