My Activity
layout has View
, i have get Y position this view at the beginning of the program, but if i shall insert in bottom method onCreate
, i get position value = 0
. How i can know, when view is drawn and get her Y position. I try get Y position when i click on button, position get good, but i have get position without using the button.
I get position:
private float cardsStartPosition = 0;
if (cardsStartPosition == 0) {
cardsStartPosition = commonCardContainer.getY();
}
Thanks for answer.