Where did it crash? Stack trace? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together
The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 13, 7:23 am, Tuftux <[email protected]> wrote: > Hey guys ! > I'm quite new to Android. I followed the official TabHost tuto but I > modified the XML template to display a LinearLayout wich contain a > textView instead of a simple TextView (much easeier to handle when > there's more than a simple text in a tab). But when I start the > program it crashes. Here's the XML Layout : > <?xml version="1.0" encoding="utf-8"?> > <TabHost > xmlns:android="http://schemas.android.com/apk/res/android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > <LinearLayout > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > <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" > > <LinearLayout > > android:orientation="vertical" > android:id="@+id/tab1" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent"> > > <ImageView > > android:src="@drawable/header" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" /> > > > <TextView > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > android:text="@string/HelloOuverta"/> > </LinearLayout> > > <LinearLayout > > android:orientation="vertical" > android:id="@+id/tab2" > > android:layout_width="fill_parent" > > android:layout_height="fill_parent" > > > <TextView > > android:layout_width="fill_parent" > > android:layout_height="wrap_content" > > android:text="@string/Idea" /> > > </LinearLayout> > </FrameLayout> > </LinearLayout> > </TabHost> > > Many thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

