Hi,

If I call public void setSelection(int position, boolean animate) of
Gallery, its parent (AbsSpinner) setSelection method will get called.
And that will lead to layout(int delta, boolean animate) of Gallery get called.

In AbsSpinner.java:

 protected void setSelectionInt(int position, boolean animate) {
        if (position != mOldSelectedPosition) {
            mBlockLayoutRequests = true;
            int delta  = position - mSelectedPosition;
            setNextSelectedPositionInt(position);
            layout(delta, animate);
            mBlockLayoutRequests = false;
        }
    }

    abstract void layout(int delta, boolean animate);  // is
implemented by Gallery.java

My question is the implementation never does anything with the animate
flag in its layout method.
Is there a reason for it? If yes, how will the animation work if I
call setSelection(int position, animate = true)?

If not is this a bug? And if it is, is there anything I can work around it?

Thank you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to