'Kivy app not adjusting according to display size

I am creating a Kivy app. The app is fine on my 15-inch display but when I test it on a different sized display. The objects are not automatically adjusted. What do I do?



Solution 1:[1]

The question are not so much clear but you can use kivy metrics visit https://kivy.org/doc/stable/api-kivy.metrics.html and scale depends on what do you want Inches or Density-independent Pixels but i recommend the dp you can call it by

from kivy.metrics import dp

and in kv file for example

size: '50dp' '50dp'

and by that you can have better automatically adjusted to whatever display size

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 joker