Problème TabHost Android 2.2 et inférieur probablement
Bonjour,
je viens de finir une application Android, qui fonctionne très bien etc.
Cependant, après l'avoir testé sur un téléphone 4.0.3 et un 2.3.3, je l'ai testé sur un 2.2.1 et la, surprise: La tabhost ne s'affiche pas mais mets un jolie dégradé rose a la place ...
Si quelqu'un a déjà eu ce problème ou en a entendu parlé, je suis preneur !
Merci d'avance, je mets le xml si dessous.
Code:
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
| <TabHost
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:background="#000000"
android:gravity="bottom" >
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="60dp" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="bottom"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/actionbar"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:background="@drawable/tab_background"
android:gravity="bottom" >
</TabWidget>
</RelativeLayout>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone" >
</FrameLayout>
</LinearLayout>
</FrameLayout>
</TabHost> |
µ
Edit: Ce qui est étrange c'est que ça fonctionne sur émulateur 2.2 (oui j'ai eu la patience d'essayer, aha!)