Wednesday, July 13, 2011

Re: [android-developers] Re: How can I find how many home screens?

On Wed, Jul 13, 2011 at 7:44 PM, Hal Harrison
<closeenough.backup@gmail.com> wrote:
> 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 : )

Yeah, OK, that's outside my scope of expertise. It sounds plausible, though.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment