This is part of the information in onOffsetsChanged(), give by the step
size.  Sorry for the lacking documentation there; you can get more
information about their meaning from here:

http://developer.android.com/reference/android/app/WallpaperManager.html#setWallpaperOffsetSteps(float,
float)

On Wed, Jul 13, 2011 at 4:44 PM, Hal Harrison
<closeenough.bac...@gmail.com>wrote:

> > No, sorry. I can envision a home screen implementation with infinite
> > "home screens".
>
> Thanks, Mark, for the reply. I was afraid of that and am looking at my
> problem again.
>
> What about this?
>
> Occasionally onOffsetsChanged() gives an xStep of 0.0 or -1.0.
> Otherwise it consistently gives 0.5 (emulator 2.1 with three home
> screens) or 0.25 (emulator 2.2 with five home screens). Therefore, I
> assume:
>
> (1 / xStep) + 1 = number of current home screens.
>
> Any problem with my assumption?  //at least until xStep gets
> infinitesimally small : )
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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 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