Android Studio : Change Variable from another Class in MainActiviy don't effect the Canvas
I create a class "Properties": class Properties { var x = 200f } In the second class "Canvas" I can change the variable "p.x" and the Canvas shows the correct Coordinates on myCanvas.drawCircle(p.x, 100, 10f, myPaint): val p = Properties()…