In the attached project, there are three cases: a vertical bubble level, a horizontal bubble level, and a center bubble level for horizontal adjustment and set xy values to be zero if bubble in centre
I've programmed the application, but it doesn't produce accurate results !! . How can I force the center bubble to stay within the circle's boundaries?
Samsung A13 on my desk Ahmed's app seems to be congruent with real spirit level using Tim's aia (modified) . Thanks. Yes, my desktop is not perfectly flat (but my table say is flat)
To make the Level more realistic, I want the bubble to change shape as the phone moves vertically, tilts forward, or backward. There's a different image for the circular bubble =bubble_h.png , and a different image for the vertical and horizontal bubble = bubble_margin.png
attached in aia file
How can I make the new bubble rotate on the perimeter of circle of the level, and on the outer perimeter of the horizontal and vertical Level correctly? I tried a lot, but it always appears upside down or rotates randomly.