View focus is maintained per window, so if a window loses focus, the next time it gains focus back the same view inside of it will still have focus. This is generally a feature.
If you are talking about just highlighting (not focus) it just may be a back in the code to not clear the highlight state at some point when the window is no longer interacting with the user... though generally once you start touching on a window, touch events will continue to be delivered to it until the final up occurs, even if another window appears on top of it, just to ensure it gets a consistent event stream.
On Wed, Jul 21, 2010 at 7:58 PM, Praneeth
<pranee...@gmail.com> wrote:
When we touch a Preference, how does the android know that It needs to
focus the Preference.
I have a Preference as an element in Preference Screen in a
PreferenceActivity.
I handle events on the Preference using onPreferenceTreeClick.
I have a situation, where I keep my finger on Preference and I dont
remove the finger. (Similar to LongClick....u can consider it as
LongPress rather).
When the Preference is still highlighted, My current activity goes
into "onPause" because one of the sensor has become active.
After it has finished onPause, I removed my finger from Preference
leaving the event unhandled.
When the Activity resumes back from its onPause state, I find that the
Preference is still highlighted.---this is the problem
From the logs I could make out that the event was lost after onPause
was called.
"07-15 20:06:44.616: WARN/WindowManager(1274): No window to dispatch
pointer action 1"
Please drop down your suggestion.
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
--
Dianne Hackborn
Android framework engineer
hac...@android.comNote: 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.