According to the Android link I posted earlier, this functionality has been available since version 1 of the API. My target is currently set for Android 2.1
http://developer.android.com/reference/android/widget/TabWidget.html Top right, "Since: API Level 1<http://developer.android.com/guide/appendix/api-levels.html#level1> " On Mon, Jun 20, 2011 at 3:09 PM, Tor Norbye <[email protected]> wrote: > This should be fixed in the newer rendering libraries. So either try > changing the rendering target (a combobox in the configuration chooser > above the layout editor) to 3.0 or 3.1, or, install the preview > versions of the backports of the layout library to 2.x - see > http://tools.android.com/download . > > -- Tor > > On Sun, Jun 19, 2011 at 10:44 AM, Simon Platten > <[email protected]> wrote: > > I am trying to create a layout using the TabHost and TabWidge views as > > described here: > > > > > http://developer.android.com/resources/tutorials/views/hello-tabwidget.html > > > > My XML so far looks like this: > > > > <?xml version="1.0" encoding="utf-8"?> > > <TabHost xmlns:android="http://schemas.android.com/apk/res/android" > > android:id="@android:id/tabhost" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent"> > > <LinearLayout xmlns:android=" > http://schemas.android.com/apk/res/android" > > android:orientation="vertical" > > android:isScrollContainer="true" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:layout_gravity="center_horizontal" > > android:gravity="center_horizontal" > > android:background="@drawable/bg"> > > <TabWidget android:id="@android:id/tabs" > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" /> > > <FrameLayout android:id="@android:id/tabcontent" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > android:padding="5dp" /> > > </LinearLayout> > > </TabHost> > > > > However, the graphical layout shows the following error: > > > > Error during post inflation process: > > TabHost requires a TabWidget with id "android:id/tabs". > > View found with id 'tabs' is 'com.android.layoutlib.bridge.MockView' > > > > The following classes could not be found: > > - TabWidget > > > > I've made sure eclipse and the SDK is all up to date, so what am I > missing? > > > > Thank you, > > > > -- > > Regards, > > Sy > > > > -- > > 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 > > -- > 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 -- Regards, Sy -- 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

