79321820

Date: 2025-01-01 15:13:29
Score: 0.5
Natty:
Report link

Removed size_hint_y: None and set explicit height and width using width: root.width * 0.8 and height: root.height * 0.6. Used FloatLayout for precise positioning. The pos_hint is used to ensure that the grid layout is centered both horizontally and vertically on the screen.

The new gridlayout section for scr 1 is below:

                GridLayout:
                    cols: 3
                    rows: 2
                    padding: "10dp"
                    spacing: "10dp"
                    size_hint: None, None  
                    width: root.width * 0.8  
                    height: root.height * 0.6  
                    pos_hint: {"center_x": 0.5, "center_y": 0.5}

Output: enter image description here

Cheers!!!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Subir Chowdhury