Live Wallpaper - How to detect home screen sliding?

by Robert Green » Fri, 15 Jan 2010 12:30:15 GMT


Sponsored Links
 I've checked the WallpaperService.Engine class and don't see
anything.  What's the best practice for detecting home screen
sliding?

Thanks



Live Wallpaper - How to detect home screen sliding?

by Romain Guy » Fri, 15 Jan 2010 12:47:04 GMT


 onOffsetChanged()

 http://d.android.com/reference/android/service/wallpaper/WallpaperService.Engine.html #onOffsetsChanged(float,%20float,%20float,%20float,%20int,%20int)



>


Sponsored Links


Live Wallpaper - How to detect home screen sliding?

by Robert Green » Fri, 15 Jan 2010 12:56:16 GMT


 Aha, I don't know how I missed that.  Ok, that makes life easy.  I'll
just start with a view of predefined width and use the xOffset to know
how far to pan in one direction or another.

Thanks Romain!




> >



Other Threads

1. Android on HTC Touch Pro

Will we ever get to install the Android OS on other phones, like my
HTC Fuze aka HTC Touch Pro?  or can you only buy it on premade
phones?  I was under the impression that the point of an open phone
operating system was that we could install it on most anything?

--~--~---------~--~----~------------~-------~--~----~

2. Interesting slow EditText behavior

I believe I have isolated a rather strange bottleneck at the SDK
level, but it might be something tertiary in my own program that I
haven't caught yet.  I'm not certain.

What I am seeing is that it there is a dramatic delay in updating/
redrawing an EditText in which the text is too long to fit into the
EditText's width and must wrap vertically.  Calling SetText on such an
EditText usually results in a long delay.  Now mind you, the delay is
not inside the SetText call, which returns immediately, but rather,
after I exit my own code in which I set the text and release control
back to the OS, there is a long delay before the EditText's contents
update.  Likewise, if the user interaction was to enter or exit focus
on such an EditText, the new focus takes a long time to take affect.

...all of this only when the text is too long and must wrap.  In the
alternate case, text and focus updates occur rapidly.

Has anyone else observed such behavior?

Thank you.
--~--~---------~--~----~------------~-------~--~----~

3. getting started with eclipse

4. TextView/Button, Gravity, Background Images

5. Computer Reboots when accessing G1 through USB

6. ListView not receiving trackball focus if setContentView called asynchronously

7. GPS reading jumps a thousand miles or more