devileper wrote:
> How can you specify which item gets the default focus on Activity
> startup?  Using requestFocus programmatically does not work. On
> setContextView the first focusable item listed in the XML is given the
> default focus. When using RelativeLayout, the first item listed is not
> always the desired item or necessarily on top.

API samples show requestFocus() working in onCreate(), so I am not
certain where your problem lies.

For example:

http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/TouchPaint.html

If you cannot figure out the problem, post some sample code illustrating
how you are trying requestFocus(), and perhaps we can see the problem.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training.html

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to