I don't do android programming....
But you can!!
All we can. But if this elementary operation has not received a solution, then what can we talk about.
I see your square game panels are 8x8, why not you placing 1/8 parent to height and width, let say you need 2 block height of your screen height for setting or seeing match result, you can do by 1/10 relatif to parent for height.
, So you not need allocate you time concerning pixel, screen resolution, let LAMW handle for u. Practice n talking to the code is the key