Resizing the screen into iOS

When you run your app in the iOS device, you will note how different it looks from on the screen of your computer. Some widgets could not fit in the screen, and the location of them may change. In this recipe, we will learn how to address this situation using a simple app.

Getting ready

In this recipe, we are going to use the same code which was used in the previous recipe. Also, it is important to read the earlier recipe to know how to run your code in a real iOS device.

How to do it…

Now we have the two files: the main.py file that is the Python file with the operational part of the app and the e1.kv file that is the KV file with the graphical aspects of the app. If we want to improve our app design, we can run it like ...

Get Kivy Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.