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 android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to