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

2011-07-19 Thread Hal Harrison
Rich, thanks for your notification. I was not aware that vertical scrolling already existed, and it does affect what I am doing. Dianne, thanks for the explanations. I definitely don't want complicated or fragile code. The getResources().getDisplayMetrics() works great, and

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

2011-07-19 Thread Dianne Hackborn
On Tue, Jul 19, 2011 at 3:04 PM, Hal Harrison closeenough.bac...@gmail.comwrote: You have at this point loaded a Drawable for the current static wallpaper... but there is no up-to-date static wallpaper, because you have just replaced it with your own wallpaper. Your wallpaper should

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

2011-07-15 Thread Hal Harrison
Thanks Mark and Diane for the help. My task is to properly place my living wallpaper background (I use the current dead wallpaper) behind the system's placement of icons and widgets. My users should be able to do Settings on different (right, center, left) home screens. Here's the three

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

2011-07-15 Thread rich friedel
I haven't messed with wallpapers too much but I wanted to point out that you seem to mainly focus on side to side scrolling. There are a couple of devices (that I know of I'm sure there are far more) For example, the MetroPCS Huwai Ascend has 9 home screens in a 3x3 grid. I mention this

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

2011-07-15 Thread Dianne Hackborn
Wow that sounds like you are making it way too complicated, and way too fragile. A few comments: On Fri, Jul 15, 2011 at 1:08 PM, Hal Harrison closeenough.bac...@gmail.comwrote: 1. Upon exit from preview mode the system will always show the panel of icons and widgets last showing before

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

2011-07-13 Thread Hal Harrison
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

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

2011-07-13 Thread Mark Murphy
On Wed, Jul 13, 2011 at 7:44 PM, Hal Harrison closeenough.bac...@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 /

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

2011-07-13 Thread Dianne Hackborn
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