Sorry, this will be fixed in a future update.

On Thu, Sep 22, 2011 at 5:25 AM, Eric Carman <[email protected]> wrote:

> Using the compatibility library with the Fragment Pager Support
> example, I'm noticing some odd behavior in the scrolling.
>
> To reproduce:
>
> 1. Run the sample FragmentPagerSupport (v4)
> 2. From Fragment #1 scroll up and down using the dpad or trackball.
>      - This works as expected.
> 3. Swipe to move to Fragment #2.
> 4. Scroll up and down using the dpad or trackball.
>
> Nothing appears to happen. However, you are actually scrolling on
> Fragment #1. Not the visible fragment. In fact, you can use the left/
> right arrows (trackball roll left/right) to move the focus to the
> offscreen fragments and scroll around on those.
>
> If you connect an item click listener to the lists and display a toast
> message, you will see that while scrolling on the off-screen
> fragments, pressing the dpad-center or trackball, you will trigger the
> click response for that offscreen list item.
>
> I noticed this in my own application and confirmed with the sample
> app.
>
> Is there any way around this? Can we restrict focus/scrolling only to
> the onscreen fragment?
>
> Thank you.
>
> Best Regards,
> Eric
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to