GooglePlusLayout icon indicating copy to clipboard operation
GooglePlusLayout copied to clipboard

to start the animation

Open rodrigoGA opened this issue 11 years ago • 5 comments

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

rodrigoGA avatar Dec 07 '13 18:12 rodrigoGA

could you please tell me more about the problem ???

Nammari avatar Dec 07 '13 22:12 Nammari

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

rodrigoGA avatar Dec 07 '13 23:12 rodrigoGA

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] <= **image_**_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

Chromeologin avatar Jul 25 '21 19:07 Chromeologin

https://user-i hard-images.githubusercontent.com/87918441/126911003-41e7626a-3baa-454d-a632-9162eaaea418.MOV

Chromeologin avatar Jul 25 '21 19:07 Chromeologin

https://displaymyhostname.com/

Chromeologin avatar Jul 25 '21 19:07 Chromeologin