I'm confused I am stuck for days and have no idea what to do also searched for answers for a long time but nothing so far...
so anyway i'm trying to create a little 2D game (On landscape) from above perspective everything works find there is just one problem with the screen size. I tried to get size of the screen and it worked just fine the problem is that even though the size I get is the right size(Checked it on a few devices) when I ran the app it appears like the screen is bigger than that. On some devices it looks fine but on some it shows like they are bigger than their actual size.
the Y axis is wrong The X axis looks fine just as it supposed to be
Point screenSize=new Point();
getWindowManager().getDefaultDisplay().getSize(screenSize);
Display display=getWindowManager().getDefaultDisplay();
display.getRealSize(screenSize);
This is the code I use to get the device size.
Please if you have any idea what the problem might be help me