GooglePlusLayout
GooglePlusLayout copied to clipboard
to start the animation
I had a problem. When i scroll the animation not start correctly. solve it by replacing in private boolean animationNeedToBeRunOnChild(int[] childLocationOnScreen) this
if (isVerticalScrollView) { if (childLocationOnScreen[1] <= rootView.getBottom()) { result = true; }
for this
if (isVerticalScrollView) {
int heightPx = rootView.getContext().getResources().getDisplayMetrics().heightPixels;
if (childLocationOnScreen[1] <= heightPx ) {
result = true;
}
sorry for my English, and thanks
could you please tell me more about the problem ???
depends the size of the cards. But in some case the animation does not start for the card below and this shows. But for some cases only at the bottom. Do not know how to explain, or if you understand me. Probably you always work with the same cards and not noticed this problem, or probably only present the problem in my project, but I wanted to comment, I do not know if it's useful.. Saludos
I had a problem. When i scroll the animation not start correctly. solve it by replacing in private boolean animationNeedToBeRunOnChild(int[] childLocationOnScreen) this
if (isVerticalScrollView) { if (childLocationOnScreen[1] <= **
_**_rootView.getBottom()) { result = true; }
for this
if (isVerticalScrollView) { int heightPx = rootView.getContext().getResources().getDisplayMetrics().heightPixels; if (childLocationOnScreen[1] <= heightPx ) { result = true; }
sorry for my English, and thanks
https://user-i hard-images.githubusercontent.com/87918441/126911003-41e7626a-3baa-454d-a632-9162eaaea418.MOV
https://displaymyhostname.com/