I know there are lot of questions/tutorials related to android layout and dimens design but I am facing one issue for the dimens. The issue is for the devices which are built with xhdpi or xxhdpi or xxxhdpi.
I have 4 values folder in my project:
After the investigation and many of trial, I got solution for this. I am posting my solution here so that it can helpful to anyone in future.
Nexus 4 has a resolution of
384x640 dp with
xhdpi density. So I used
values-sw320dp-xhdpi for that
Nexus 5X has a resolution of
411x731 dp with
xxhdpi density. So I used
values-sw320dp-xxhdpi for that
Android Studio accepts it and respective devices also loads dimensions from respective values folders.