All the different resolutions of the different Android products are driving me nuts.
My first android app that I wrote was designed so it supported the three commonl
Now, i'm just guessing here since the rest of the implementation isn't shown, but I'm assuming you are using those derived measurements as px
px
Take a look at dp. That essentially does all those things you did, automatically, for any device. (Device Independent Pixel)
dp