> Then you are probably doing something something wrong. This should not happen.
>

Not exactly sure what I could be doing wrong.

It's really pretty simple stuff -- a plain vanilla Cursor backed
ListView and a pop-up Activity.

I use the trackball to navigate through the list -- I can see the
orange focus highlight.  Then I press the trackball to select the line
item which starts the pop-up Activity.  After the pop-up becomes
visible, I immediately use the physical back arrow to dismiss it.  At
this point I would expect to see the previously selected line
highlighted again so that I can continue using the trackball so select
another line.  I, at no point, touch the screen.

I can whip up a sample app that demostrates what I mean, if that's
more helpful.


On Jan 16, 12:57 am, Romain Guy <[email protected]> wrote:
> > I wonder if this behavior should be defeatable.
>
> No. No. No. No.
>
> > Currently, if the user navigates then clicks the ListView using the
> > trackball and then hits the back button from the pop-up Activity
> > without ever touching the screen, the system behaves as if there had
> > been a touch.  In my opinion, it's a bit unintuitive.
>
> Then you are probably doing something something wrong. This should not happen.
>
>
>
>
>
>
>
> > On Jan 15, 2:41 pm, Romain Guy <[email protected]> wrote:
> >> This is the normal and intended behavior. Focus appears only when the
> >> user uses the trackball/dpad. When the  user touches the screen, the
> >> focus disappears.
>
> >> On Thu, Jan 14, 2010 at 10:33 PM, Zsolt Vasvari <[email protected]> wrote:
> >> > I have a ListView in a ListActivity that starts another Activity when
> >> > a list item is clicked.  The 2nd Activity is a Theme.Dialog, but I
> >> > don't think that matters for this purpose.
>
> >> > I would like the visible focus restored to the ListView when I close
> >> > the 2nd Activity.  Currently,when I come back, I have to hit the
> >> > trackball once to give focus to the ListView and then hit it again to
> >> > move around in the list.
>
> >> > I tried the obvious getListView().requestFocus() from onResume().  I
> >> > also tried saving the current focused view using getListView
> >> > ().findFocus() before starting the 2nd Activity, but neither of these
> >> > methods work.
>
> >> > I am using API Level 7 in the Emulator.
>
> >> > Can anyone help?
>
> >> > Thanks,
> >> > Zsolt Vasvari
>
> >> > --
> >> > You received this message because you are subscribed to the Google
> >> > Groups "Android Developers" group.
> >> > To post to this group, send email to [email protected]
> >> > To unsubscribe from this group, send email to
> >> > [email protected]
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/android-developers?hl=en
>
> >> --
> >> Romain Guy
> >> Android framework engineer
> >> [email protected]
>
> >> Note: please don't send private questions to me, as I don't have time
> >> to provide private support.  All such questions should be posted on
> >> public forums, where I and others can see and answer them- Hide quoted 
> >> text -
>
> >> - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Romain Guy
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them- Hide quoted text -
>
> - Show quoted text -
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to