ActionBar – a responsive bar
A new set of widgets were introduced in Kivy 1.8.0, all of them related to the ActionBar
widget. This widget resembles the Android's action bar. This will not only give your applications a modern and professional look, but it also includes more subtle properties such as responsiveness to small screens. Depending on the ActionBar
widget hierarchy and components, the different widgets will collapse in order to adapt to the screen space available in the device. First, let's take a look at the final result of our planned ActionBar
:
We add the Kivy language code to produce the previous bar in a new file kivyplayer.kv
, as presented ...
Get Kivy – Interactive Applications and Games in Python - Second Edition 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.