Is there any difference in the way Android handles layouts in the “layout-normal” vs “layout” folders? If I have a device that is considered layout-small, which folder will it look at if those are the only two options?
Is there any difference in the way Android handles layouts in the layout-normal vs
Share
Yes, In the example you’ve given it will take from “layout” first.
When determining where to pull resources from it will check the layout-size folder that matches the device first (i.e. small device will check layout-small first), if the specific resource in question isn’t available there then it will check the plain “layout”. If and only if the resource is still not available there will it start to check in “layout-size” folders that do not match the device that it is currently running on.
EDIT: Just tested on a small device. My findings re-affirm how I thought it would work. It will definitely take from plain layout instead of layout-normal on a small device if the resource exists in both.