hi, thanks for making me think about this some more :) i found the problem. when add a tab based on an activity,

        mTabHost.addTab(mTabHost.newTabSpec("faves").setIndicator("Favorites",
                getResources().getDrawable(R.drawable.edit)).setContent(
                new Intent(this, FavesActivity.class)));

you DO NOT include it in your tab layout. i was doing the below, which is was wrong,

       <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent">
            <include layout="@layout/closest"/>
            <include layout="@layout/search"/>
            <include layout="@layout/faves"/>

        </FrameLayout>

On 9/5/09 8:31 AM, nimph wrote:
No...  Can we see your layout file, or the code if you wrote it by
hand?

//

On Sep 4, 6:10 pm, Jeffrey Blattman <[email protected]>
wrote:
  
i create a tab layout, and populate the tabs by providing an intent. i
find that the content of the two tabs overlaps. i have to add an onclick
listener for the tab that set the visibility of the top level view in
each of the intents based on the tab that was clicked.

is this how things are supposed to work?

--
    
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

  

--

Reply via email to