Hey
@ilan , I found Samsung G S8 to test it.
Results:
First run
On First run I see board is not centered.
On second run board was centered and I tried to uninstall and install again and everything was centered!?
I also played with gamelauncher (with witch I'm not familiar) and try to run in full screen and with and without navbar buttons and I was not able to repeat not centered scenario.
i am sure there is an issue in your calculations. but why are you using simple views like canvas and also use libgdx?
why not use only libgdxand draw everything using libgdx? or use only canvas. the rotating wheel should also work well using only canvas.
So calculations are good but I think that gamelauncher causes problems on first run or something.
I started all game with simple views and canvas but rotating wheel was not so smooth, so i just implement libgdx for rotating.
LineWidth and SquareSize is explained here:
In short, I am using this so I can create unique
best fitting board for every possible screen ratio. (I do not stretch any image for board. Its drawn from scratch)
Can you try run it again and see is it any different, or look at that gamelauncher options?