Found the solution.

OnItemSelectedListener  on list view gets the position of the current
focused list item.|


On Tue, Mar 12, 2013 at 6:17 PM, Shashidhar <[email protected]> wrote:

> Hi,
>  I have an application which has a custom listview. I run it on a smart tv
> android device and the whole navigation is based on the standard keyboard
> arrow buttons. I am able to scroll up and down through the list items using
> up and down arrow keys. When I scroll using keys, the list selector moves
> appropriately. I need to do somethings based on the item being focused.
> But, I could not find a way to get the list item focus changed event.
> Essentially, I need to know whenever a list item takes the focus.
>
> I tried to set the focuschangelistener for the view that I am returning in
> getView() method. But its not working.
>
>
> Any help is appreciated.
>
> thanks,
> Shashidhar
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to