[SlidingDrawer] Priorité dans le positionnement
Bonjour,
Je vous explique mon problème : J'ai Un TabHost avec 3 onglets, avec dans un de ceux-ci une listView qui doit être sur toute la longueur de la page. En bas se trouve un SlidingDrawer, qui contient également une listeView. Le problème est que la listView contenue dans l'onglet s'est redimensionnée comme si le tiroir était ouvert. J'aimerai que le Sliding Drawer passe au dessus de cette liste quand il s'ouvre. Voici un screen du problème :
http://img14.imageshack.us/img14/9753/problmex.png
Uploaded with ImageShack.us
On vois bien la limitation de ma liste, même si le SlidingDrawer est fermé.
Voici le code xml :
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
| <SlidingDrawer
android:layout_width="fill_parent"
android:id="@+id/slidingDrawersActu"
android:layout_height="250dip"
android:handle="@+id/handle"
android:content="@+id/content"
android:layout_alignParentBottom="true"
>
<Button
android:layout_width="fill_parent"
android:text="@string/txtButtonNameSliders"
android:layout_height="wrap_content"
android:id="@+id/handle"
android:background="@+drawable/buttonactu">
</Button>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/content"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/Blue">
<ListView
android:id="@+id/listViewActu"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</ListView>
</LinearLayout>
</SlidingDrawer>
<FrameLayout
android:layout_marginTop="@dimen/marginBarrePrinc"
android:id="@+id/FrameLayoutAccueil"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/slidingDrawersActu"
android:layout_below="@id/relativebarreprinc">
<include
layout="@layout/pagerechpublication"
android:id="@+id/milieu"
/>
</FrameLayout> |
Et le pagerechpublication :
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
| <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabHost
android:id="@+id/tabhost"
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"
android:paddingTop="70dip">
<FrameLayout
android:id="@+id/FrameLayoutListViewPubli"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ListView
android:id="@+id/listViewPubli"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</FrameLayout>
<Button
android:id="@+id/tab2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Bouton"
/>
<Button
android:id="@+id/tab3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Bouton"
/>
</FrameLayout>
</TabHost>
</RelativeLayout> |