August 2015
Intermediate to advanced
246 pages
4h 21m
English
One of the most common layouts is FloatLayout because it allows us to place the children widgets with arbitrary locations and size. The current recipe will use these particularities of FloatLayouts to organize an app with three buttons, one near the inferior left edge, the other one at the center, and the last one at the superior right edge.
This recipe is related to the previous recipe, Organizing with layouts, so it is important to read it and compare it with this recipe. The main difference is how the root widget is now the layout by itself.
In this recipe, we use the following steps to achieve the final goal:
size_hint and pos_hint properties:<MyW>: Button: ...