How to customize focus navigation in a ViewGroup

by n179911 » Wed, 29 Jul 2009 10:29:33 GMT


Sponsored Links
 Hi,

I have a View Group and it has 2 focusable Views as its children.
I would like know how I can customize how focus is being passed
between these 2 Views. In other words, when I press the Down Key or
the Up Key in the emulator, i want to control which of these children
has focus.

I read the JavaDoc of ViewGroup, I see these 2 methods.

public View focusSearch (View focused, int direction)
public boolean requestFocus (int direction, Rect previouslyFocusedRect)

But I am confused which of these method I should over-ride to achieve
what I want.

Thank you for any advice.

Regards,

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



Other Threads

1. why we need to develop android app when iphone app runs on android

hi guys,

iam into mobile games development. i am trying to develop games for android,
i did a lot of hard work and finally i was able to develop a game for
android. Then i noticed all my company games which r developed for
iphone(web based) are working fyn on android. so there is no meaning to put
extra effort for making android app separately. but i dont wish to go my
hard work in vain.There is a meeting regarding this in which i have to prove
its worth developing games for android separately. do anybody has any
answers for this?

-- 
rakesh rapaka

-- 

2. Paging boss Rendra tulungagung

yuhuuu boss....
ke google market udah gitu donglod thomson reuters news pro

then you'll see what you want over there ;)

-- 
--------------
"Indonesian Android Community [id-android]" 

3. getting notified on documents change

4. US Taxes: Does Google send a 1099 tax form?

5. list - need suggestion

6. I want to get the status of running apps,how to do?

7. Rectangular box around link