Hello all.

I've got another little issue using tabs.

I've created a new TabHost handling 4 Tabs. Each tab has an Intent as
content. The first tab launches a new Activity that creates a new
Options Menu. When i change the tab and then come back to the first
one, that menu wont show at first. I have to put the focus into one
View inside in order to make the menu show again.

I've tried requesting focus inside the first Activity..

        @Override
        protected void onResume() {
                super.onResume();
                _searchText.setFocusable(true);
                _searchText.requestFocus();
        }

i've also tried this...

public class MainActivity extends TabActivity {
....
    @Override
    public void onCreate(Bundle savedInstanceState) {
....
        _tabhost = getTabHost();

        _tabhost.setDescendantFocusability
(ViewGroup.FOCUS_AFTER_DESCENDANTS);
}

But no luck at all... :S

Any Idea???

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