The explanation is there.
I do not have any library for that.
I use different layout files for small and big screens with different panels.
On small screens only portrait and one panel per screen and on big screens only landscape and two panels per screen.
But all this depends on the kind of application and the data you want to display on the screen at the same time.
This the thumb rule. And all are expected follow it to have good Android application UI.
I am developing app for showing account and inventory reports and set one variant of my phone size (to debug) and used anchors.
I know that my app will only be used in mobile phones 5 to 6/7 inches and never in pad. If requirement for pad comes, I will create different variant for it.
My two cents.. why only discuss resolution and leave 'scale ' out of the equation??
I mean... there are devices with same resolution, let's say 900×1080 but that have diferente native 'scale' ratios, resulting in different layout scalling, and very importantly, different font physical sizes, even if they have the same 'size' value!
This is something like discussing who came first, the chicken or the egg!
Ok. done, when I get such requirement.
Actually I can not foresee what and how things will be unless and until I get my hand on pad, if company provides it.
My two cents.. why only discuss resolution and leave 'scale ' out of the equation??
I mean... there are devices with same resolution, let's say 900×1080 but that have diferente native 'scale' ratios, resulting in different layout scalling, and very importantly, different font physical sizes, even if they have the same 'size' value!
This is something like discussing who came first, the chicken or the egg!