Hi..
I have ListView, where each row contains two edittext boxes. I'd like
on list item selected(using Dpad) place focus on first edittext box. I
tried the following code, but it does not work:
ListView list = (ListView) findViewById(R.id.list);
OnItemClickListener click_listener = new OnItemClickListener() {
                public void onItemClick(AdapterView<?> parent, View view, int
position, long id){
                        EditText box1 = (EditText)view.findViewById(R.id.box1);
                        box1.requestFocus();
                    return ;
                }

        };
        list.setOnItemClickListener(click_listener);
}

Any help is appreciated.

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
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