Bjr,
voici mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
 
<?xml version="1.0" encoding="utf-8"?>
 
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent">
  <TabHost
 
  	android:id="@+id/TabHost01"
  	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">
  		</TabWidget>
  		<!-- contenu des onglets -->
  		<FrameLayout
  			android:id="@android:id/tabcontent"
  			android:layout_width="fill_parent"
  			android:layout_height="fill_parent">
  			<!-- Onglet N°1 -->
  			<LinearLayout
  				android:orientation="vertical"
  				android:layout_width="fill_parent"
  				android:layout_height="fill_parent"
  				android:scrollbars="vertical"
  				android:id="@+id/Onglet1">
  					<TextView
  						android:text="1"
  						android:id="@+id/TextViewOnglet1"
  						android:layout_width="wrap_content"
  						android:layout_height="wrap_content">
  					</TextView>
  			</LinearLayout>
  			<!-- Onglet N°2 -->
  			<LinearLayout
  				android:orientation="vertical"
  				android:layout_width="fill_parent"
  				android:layout_height="fill_parent"
  				android:scrollbars="vertical"
  				android:id="@+id/Onglet2">
  					<TextView
  						android:text="2"
  						android:id="@+id/TextViewOnglet2"
  						android:layout_width="wrap_content"
  						android:layout_height="wrap_content">
  					</TextView>
  			</LinearLayout>
  		</FrameLayout>
  	</LinearLayout>		
   </TabHost>
</LinearLayout>
voici l'erreur qui ressort dans le graphical layout d'eclipse
"
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"
merci pour votre aide