I'm trying to figure out how to define different layout for different screen density.
At the moment I have to manage a 7" (Nexus 7), 10" (galaxy tab S) and now a 9.7" (Galaxy tab A) tablets
So I've defined for now two layouts directories :
layout (for 7")
layout-sw720dp (should be only for 10")
My problem is the 9.7" tablet match the layout-sw720dp directory as my 10" tablet. So from this point I don't know how to define another layout directory based only on my 9.7" tablet.
The density of the 10"
is 288ppi
and the density of the 9.7"
is 132ppi
.
I guess if the density would be the same I wouldn't have this problem.
Is it possible to create a new directory layout based only on the density ? What is the best practice for this use case and manage at the same time my 10" layout and my 9.7" layout with a different density ?