IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Android Discussion :

SlidingDrawer passe sous le texte


Sujet :

Android

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre émérite Avatar de cadoudal56
    Profil pro
    Inscrit en
    Février 2005
    Messages
    694
    Détails du profil
    Informations personnelles :
    Âge : 53
    Localisation : France

    Informations professionnelles :
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Février 2005
    Messages : 694
    Par défaut SlidingDrawer passe sous le texte
    Bonjour,

    Voici le problème qui m'amène...

    J'ai un SlidingDrawer que j'ouvre depuis le bas de ma page.
    Cependant lorsqu'il s'ouvre, il passe sous le texte de ma page au lieu de passer au dessus. Je planche sur ce problème depuis plusieurs jours et je ne comprends pas...

    Quelqu'un aurait-il un début d'explication ?
    Je n'arrive pas a comprendre d'ou vient le problème et je n'arrive pas a trouver de cas similaire sur le web.

    Voici une portion de 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
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
     
    <FrameLayout
    	xmlns:android="http://schemas.android.com/apk/res/android"
    	android:layout_width="fill_parent"
    	android:layout_height="fill_parent">
     
    	<LinearLayout
    		android:orientation="vertical"
    		android:layout_width="fill_parent"
    		android:layout_height="fill_parent"
    		android:gravity="top"
    		android:id="@+id/layout_main"
    		>	
     
     
    <LinearLayout 
    	android:layout_width="wrap_content"  
    	android:layout_height="wrap_content">
     
        <ViewFlipper android:id="@+id/details"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"> 
     
     
     
    <TableLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/tableLayout1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:shrinkColumns="1"
        android:stretchColumns="0">
        <TableRow
            android:id="@+id/tableRow4"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:gravity="center_horizontal">
     
            <TextView android:id="@+id/titre"
    		    android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:textStyle="bold"
                android:typeface="serif"
                android:textSize="15dp"
                android:gravity="left"
                android:layout_span="2"></TextView>
        </TableRow>
        <TableRow
            android:id="@+id/tableRow2"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content">
     
            <TextView android:id="@+id/resume"
    		    android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:textStyle="bold"
                android:textColor="#FFFFFF"
                android:typeface="serif"
                android:textSize="10dp"
                android:text="Weather Table"
                android:gravity="left"
                android:layout_span="2"></TextView>
     
     
        </TableRow>
    </TableLayout>
     
    </ViewFlipper>
    </LinearLayout>
     
    <LinearLayout 
    		android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:gravity="bottom"
            android:orientation="vertical">
     
    	<SlidingDrawer
    		android:id="@+id/slidingDrawer"
    		android:handle="@+id/drawerHandle"
    		android:content="@+id/contentLayout"
    		android:layout_width="fill_parent"
    		android:layout_height="190dip"
    		android:background="#00000000"
    		>
     
    		<Button android:layout_width="wrap_content" 
    				android:layout_height="wrap_content" 
    				android:id="@+id/drawerHandle"
    				android:background="@drawable/handler_plus">
    		</Button>
     
     
    		<LinearLayout
    			xmlns:android="http://schemas.android.com/apk/res/android"
    			android:id="@+id/contentLayout"
    			android:gravity="bottom"
    			android:weightSum="1.0"
    			android:layout_width="fill_parent"
    			android:layout_height="wrap_content"
    			android:background="#000000">
    			<TableLayout
        			xmlns:android="http://schemas.android.com/apk/res/android"
        			android:id="@+id/contentLayout"
        			android:layout_width="fill_parent"
        			android:layout_height="wrap_content"
        			android:shrinkColumns="1"
        			android:stretchColumns="0">
     
     
    		<TableRow
            android:id="@+id/tableRow1"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:layout_weight="0.3"
    	    android:gravity="left">
     
            <ImageView
      	  		android:id="@+id/img_delete"
    	  		android:layout_width="50dip"
    	  		android:layout_height="50dip" 
    	  		android:src="@drawable/delete" 
    	  		android:scaleType="center" 
    	  		android:padding="3px"
    	  		android:layout_weight="0.2"/>
    		<Button android:id="@+id/ButtonIhavent" 
       		android:layout_width="fill_parent"
    		android:layout_height="50dip"
    		android:gravity="left"
    		android:background="#000000"
        	android:textColor="#FFFFFF"
        	android:padding="15dip"
        	android:textSize="14dip"
        	android:textStyle="bold"
       		android:text="@string/titleIhavent"
       		android:layout_weight="0.8"/>
    		</TableRow>
    		<TableRow
            android:id="@+id/tableRow2"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:layout_weight="0.3"
    	    android:gravity="center_horizontal">
     
            <ImageView
      	  		android:id="@+id/img_shoplist"
    	  		android:layout_width="50dip"
    	  		android:layout_height="50dip" 
    	  		android:src="@drawable/shoplist" 
    	  		android:scaleType="center" 
    	  		android:padding="3px"
    	  		android:layout_weight="0.2"/>
    		<Button android:id="@+id/ButtonWishlist" 
       		android:layout_width="fill_parent"
    		android:layout_height="50dip"
    		android:gravity="left"
    		android:background="#000000"
        	android:textColor="#FFFFFF"
        	android:padding="15dip"
        	android:textSize="14dip"
        	android:textStyle="bold"
       		android:text="@string/titleIwantit"
       		android:layout_weight="0.8"/>
     
       		</TableRow>
       		<TableRow
            android:id="@+id/tableRow3"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:layout_weight="0.3"
    	    android:gravity="center_horizontal">
            <ImageView
      	  		android:id="@+id/img_series"
    	  		android:layout_width="50dip"
    	  		android:layout_height="50dip" 
    	  		android:src="@drawable/series" 
    	  		android:scaleType="center" 
    	  		android:paddingTop="3px"
    	  		android:layout_weight="0.2"/>
    		<Button android:id="@+id/ButtonIhave" 
       		android:layout_width="fill_parent"
    		android:layout_height="50dip"
    		android:textColor="#FFFFFF"
        	android:background="#000000"
        	android:padding="15dip"
        	android:gravity="left"
        	android:textSize="14dip"
        	android:textStyle="bold"
       		android:text="@string/titleIhaveit"
       		android:layout_weight="0.8"/>
     
       		</TableRow>
    		</TableLayout>
    		</LinearLayout>
    	</SlidingDrawer>
     
    </LinearLayout>
     
    </LinearLayout>
    </FrameLayout>
    @+
    Cadoudal56

  2. #2
    Membre émérite Avatar de cadoudal56
    Profil pro
    Inscrit en
    Février 2005
    Messages
    694
    Détails du profil
    Informations personnelles :
    Âge : 53
    Localisation : France

    Informations professionnelles :
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Février 2005
    Messages : 694
    Par défaut
    Pour ceux que cela pourra aider...

    La structure des éléments dans le XML n'était pas bonne.

    J'ai modifié la structure dont l'ossature doit etre :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
    <FrameLayout>
    <Viewflipper>
    ...
    </Viewflipper>
    <LinearLayout>
    <SlidingDrawer>
    ....
    </SlidingDrawer>
    </LinearLayout>
    <FrameLayout>
    Comme ceci et avec les bonnes options le slidingdrawer s'affiche au dessus du viewflipper et non en dessous

    @+
    Cadou

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [CSS 2] Texte qui passe sous un div en float rigth
    Par jay-ko dans le forum Mise en page CSS
    Réponses: 9
    Dernier message: 14/08/2009, 11h17
  2. [VB]Gestion d'un login et mot de passe sous VB
    Par b_steph_2 dans le forum VB 6 et antérieur
    Réponses: 4
    Dernier message: 10/10/2005, 18h09
  3. Obtenir la mémoristation du mot de passe sous IE
    Par zakuli dans le forum Autres Logiciels
    Réponses: 5
    Dernier message: 05/10/2005, 13h11
  4. Un input qui passe de type text à type password ?
    Par Michaël dans le forum Général JavaScript
    Réponses: 8
    Dernier message: 28/06/2005, 11h33
  5. Comment changer le mot de passe sous Interbase
    Par ETOKA dans le forum InterBase
    Réponses: 3
    Dernier message: 05/08/2004, 11h25

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo