2020-03-16 12:54 AM
Is there function to get absolute position of Drawable? getX() returns relative position within container.
So if I have 3 nested containers, I must do:
container1->getX() + container2->getX() + container3->getX() + drawable1->getX()
Is this the intended way, or am I missing something?
2020-03-16 01:08 AM
I haven't tried it myself lately, so a bit unsure, but maybe Drawable::getAbsoluteRect() is what you are looking for.