Hi all! I hope you're having a good day.
I recently made and published a small game on the Google Play Store, but I found that it appears different on different devices. I've tried to debug and find out what's causing the problem and I've narrowed it down to different devices having different pixel densities, since I hardcoded values for the sizes of all my objects. I tried dividing these hardcoded values with displayDensity but the objects are still far too large. How can I go about standardising the appearance across devices?
Also, to avoid this inter-device incompatibility in the future, how should I be structuring my code instead?
Thank you all!