@Albert Chang I added padding(start=20.dp) after constrainAs modifier to reserve space and in drawCircle gave center=Offset(25f,height/2) and it works but that padding value of 20.dp i had to hit and trial to get that perfect number as the padding is in dp and that center was in Offet float values . is there any way to know proper paddiing needed ?
Anyways got it working . Thanks for that. Also @Albert Chang if you could help with one more thing, the mapview in the screen shot is croppped to that size when i place it inside a scrollable container but covers full height if the scrollable property is removed. Any idea how to solve it? I have copy pasted code from Crane sample app for the MapView
1 year ago
I don't know and you may want to start a new thread.