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

Composants graphiques Android Discussion :

Difference mise en page layout Galaxy Ace et Galaxy Note plus grand ecran


Sujet :

Composants graphiques Android

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    501
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 501
    Points : 102
    Points
    102
    Par défaut Difference mise en page layout Galaxy Ace et Galaxy Note plus grand ecran
    Salut les amis,comment faire pour pouvoir mieu disposer les composants sur une mise en page(layout) ou j'ai eu la contrainte de devoir serer mes éléments pour une configuration sur les samsung à Résolution de l'affichage HVGA : 320 x 480 et de passé à une configuration 1280×720 ou l'ecran et un peu plus grand:

    Exemple avec les AVD:


    3.2 qvga 320x480 mdpy: Galaxy Ace
    Nom : 320x480.png
Affichages : 92
Taille : 7,7 Ko


    Galaxy Nexus 4.7 720x1280: genre Samsung Galaxy Note 2
    Nom : 720x1280.png
Affichages : 91
Taille : 6,2 Ko

  2. #2
    Expert éminent

    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Février 2007
    Messages
    4 253
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Février 2007
    Messages : 4 253
    Points : 7 618
    Points
    7 618
    Billets dans le blog
    3
    Par défaut
    D'après les screens on dirait du HTML... Et pour cette partie je ne pourrai pas trop t'aider (CSS et moi ça fait 23).

    Par contre pour les layouts, utilise "RelativeLayout" et les attributs "match_parent" pour la taille.
    Ensuite tu pourras coller le bouton "envoyer" en bas
    Et, éventuellement, un scrolling layout (en match_parent) pour la partie du haut (contenant un LinearLayout vertical en "wrap_content").
    N'oubliez pas de cliquer sur mais aussi sur si un commentaire vous a été utile !
    Et surtout

  3. #3
    Membre régulier
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    501
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 501
    Points : 102
    Points
    102
    Par défaut
    Un scrollView tu parle pour le contenu du bas, car j'ai mis un scrollView en haut avec un ensemble de champ a remplir et dessous un nouveau layout comprenant une view pour un canvas de signature.

    Je te joint mon layout car je pige pas, j'ai tout mis en "fill_parent" pour que les composants prennent tout l'espace disponible, et de plus je suis oblige de mette un height à mon scroll view sinon le composant le succédant dessous ne s'affiche pas, c'est un layout conteneur comportant une View.


    Ci-dessou la View que je met dans mon conteneurSignature d'un de mes layout

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
                    conteneurSignature = (LinearLayout)findViewById(R.id.conteneurSignature);
    	        myView = new MyView(this);
     
    	        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(300, 60);
    	        layoutParams.setMargins(0, 0, 0, 0);
    	        myView.setLayoutParams(layoutParams);
    	        conteneurSignature.addView(myView);
    Layout1.rar

  4. #4
    Expert éminent

    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Février 2007
    Messages
    4 253
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Février 2007
    Messages : 4 253
    Points : 7 618
    Points
    7 618
    Billets dans le blog
    3
    Par défaut
    * RelativeLayout (match_parent,match_parent)
    *** LinearLayout ("signature", wrap_content, wrap_content, alignParentBottom="true" ...)
    ***** ....
    *** ScrollView (match_parent,match_parent,alignParentTop="true",above="signature"...)
    ***** LinearLayout ("content", wrap_content, wrap_content)
    ******* ....
    N'oubliez pas de cliquer sur mais aussi sur si un commentaire vous a été utile !
    Et surtout

  5. #5
    Membre régulier
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    501
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 501
    Points : 102
    Points
    102
    Par défaut
    Pourquoi mon conteneur signature au dessus de mon scrollView c'est l'inverse que je veux, merci a toi l'ami c sympa mais j'ai toujour des probléme j'ai que le scrollView qui s'affiche.

  6. #6
    Expert éminent

    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Février 2007
    Messages
    4 253
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Février 2007
    Messages : 4 253
    Points : 7 618
    Points
    7 618
    Billets dans le blog
    3
    Par défaut
    heu.. il n'est pas "au dessus", il est "avant" dans le XML pour spécifier son ID, et parce qu'il sera de taille fixe (une habitude que j'ai).
    Mais il est bien marqué "alignParentBottom" (donc en bas du parent).
    Et le scroll-view est bien marqué "above" la signature (et donc au dessus).
    N'oubliez pas de cliquer sur mais aussi sur si un commentaire vous a été utile !
    Et surtout

  7. #7
    Membre régulier
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    501
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 501
    Points : 102
    Points
    102
    Par défaut
    Oui, merci l'ami les élément ce positionne mieux du passage du portrait au paysage c'est encore mieux, mais impossible pour moi de positionné mon bouton et bas il disparait
    Pourtant j'ai bien mis le below
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    <Button
            android:id="@+id/send"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/conteneurSignature"
            android:text="Envoyer" />

  8. #8
    Expert éminent

    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Février 2007
    Messages
    4 253
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Février 2007
    Messages : 4 253
    Points : 7 618
    Points
    7 618
    Billets dans le blog
    3
    Par défaut
    Pourrais tu nous montrer le fichier layout complet ?
    N'oubliez pas de cliquer sur mais aussi sur si un commentaire vous a été utile !
    Et surtout

  9. #9
    Membre régulier
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    501
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 501
    Points : 102
    Points
    102
    Par défaut
    merci l'ami c cool, donc comme je te dis je positionne mon Bouton ayant pour id send en dessous de mon conteneurSignature, mais il disparait ou sort de la zone affichable.

    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
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
     
    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >
     
     <LinearLayout
         android:id="@+id/conteneurSignature"
         android:layout_width="350dp"
         android:layout_height="100dp"
         android:layout_alignParentBottom="true"
         android:layout_centerHorizontal="true"
         android:layout_gravity="center_horizontal"
         android:layout_marginBottom="4dp"
         android:background="@drawable/linearborder"
         android:gravity="center_horizontal|fill_horizontal"
         android:orientation="horizontal" >
     
    </LinearLayout>   
     
        <Button
            android:id="@+id/send"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/conteneurSignature"
            android:layout_centerHorizontal="true"
            android:text="Envoyer" />
     
    <LinearLayout
        android:id="@+id/libSignature"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@id/conteneurSignature"
        android:orientation="horizontal" >
     
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginBottom="2dp"
            android:gravity="center"
            android:text="Signature : "
            android:textColor="#FF0000"
            android:textStyle="bold" />
     
    </LinearLayout>
     
    <ScrollView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@id/libSignature"
        android:layout_alignParentTop="true"
        android:layout_alignWithParentIfMissing="false"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="false"
        android:layout_marginBottom="2dp" >
     
            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:orientation="vertical" >
     
                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="5dp"
                    android:layout_marginLeft="20dp"
                    android:layout_marginRight="20dp"
                    android:layout_marginTop="8dp"
                    android:orientation="horizontal" >
     
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="N° : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/num"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number" />
     
            </LinearLayout>
     
            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="5dp"
                android:layout_marginLeft="20dp"
                android:layout_marginRight="20dp"
                android:layout_marginTop="5dp"
                android:orientation="horizontal" >
     
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="Date : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/date"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="date" />
     
            </LinearLayout>
     
            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="5dp"
                android:layout_marginLeft="20dp"
                android:layout_marginRight="20dp"
                android:layout_marginTop="5dp"
                android:orientation="horizontal" >
     
                  <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="NumMag : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/numMag"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number" />
     
            </LinearLayout>
     
            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="5dp"
                android:layout_marginLeft="20dp"
                android:layout_marginRight="20dp"
                android:layout_marginTop="5dp"
                android:orientation="horizontal" >
     
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="NomMag : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/nomMag"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="textMultiLine" />
            </LinearLayout>
     
               <LinearLayout
                   android:layout_width="fill_parent"
                   android:layout_height="wrap_content"
                   android:layout_marginBottom="5dp"
                   android:layout_marginLeft="20dp"
                   android:layout_marginTop="10dp"
                   android:orientation="horizontal" >
     
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="remarquesks : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/remarqueSks"
                    android:layout_width="match_parent"
                    android:layout_height="100dp"
                    android:inputType="textMultiLine" />
            </LinearLayout>
     
            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="5dp"
                android:layout_marginLeft="20dp"
                android:layout_marginRight="20dp"
                android:layout_marginTop="5dp"
                android:orientation="horizontal" >
     
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="RemarqueScab : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/remarqueScab"
                    android:layout_width="match_parent"
                    android:layout_height="110dp"
                    android:inputType="textMultiLine|textCapWords" />
            </LinearLayout>
     
            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="5dp"
                android:layout_marginLeft="20dp"
                android:layout_marginRight="20dp"
                android:layout_marginTop="5dp"
                android:orientation="horizontal" >
     
                  <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="NbEtoileMiroir : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/nbEtoileMiroir"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number" />
            </LinearLayout>
     
             <LinearLayout
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginBottom="5dp"
                 android:layout_marginLeft="20dp"
                 android:layout_marginRight="20dp"
                 android:layout_marginTop="5dp"
                 android:orientation="horizontal" >
     
                  <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="NbEtoileCabine : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/nbEtoileCabine"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number" />
            </LinearLayout>
     
             <LinearLayout
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginBottom="5dp"
                 android:layout_marginLeft="20dp"
                 android:layout_marginRight="20dp"
                 android:layout_marginTop="5dp"
                 android:orientation="horizontal" >
     
                  <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="NbEtoileVitrine : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/nbEtoileVitrine"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number" />
            </LinearLayout>
     
             <LinearLayout
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginBottom="5dp"
                 android:layout_marginLeft="20dp"
                 android:layout_marginRight="20dp"
                 android:layout_marginTop="5dp"
                 android:orientation="horizontal" >
     
                  <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="NbBandePorte : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/nbBandePorte"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number" />
            </LinearLayout>
     
              <LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="5dp"
                  android:layout_marginLeft="20dp"
                  android:layout_marginRight="20dp"
                  android:layout_marginTop="5dp"
                  android:orientation="horizontal" >
     
                  <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="Nbpark : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/nbpark"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number" />
            </LinearLayout>
     
              <LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="5dp"
                  android:layout_marginLeft="20dp"
                  android:layout_marginRight="20dp"
                  android:layout_marginTop="5dp"
                  android:orientation="horizontal" >
     
                  <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="NbBandePorte : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/nbBandePorte"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number" />
            </LinearLayout>
     
             <LinearLayout
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:layout_marginBottom="5dp"
                 android:layout_marginLeft="20dp"
                 android:layout_marginRight="20dp"
                 android:layout_marginTop="5dp"
                 android:orientation="horizontal" >
     
                  <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="Nbpanneauxpark : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/nbpanneauxpark"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:inputType="number" />
            </LinearLayout>
     
             <CheckBox
                 android:id="@+id/tablettePose"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Tablettepose" />
             <CheckBox
                 android:id="@+id/tablettePeinte"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Tablettepeinte" />
             <CheckBox
                 android:id="@+id/cabtpe"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Cabtpe" />
             <CheckBox
                 android:id="@+id/barrecabine"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="barrecabine" />
             <CheckBox
                 android:id="@+id/paterecabine"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Paterecabine" />
             <CheckBox
                 android:id="@+id/siegecabine"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Siegecabine" />
             <CheckBox
                 android:id="@+id/retraitancienmaterielks"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Retraitancienmaterielks" />
              <CheckBox
                 android:id="@+id/retraitancienmaterielcab"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Retraitancienmaterielcab" />
              <CheckBox
                 android:id="@+id/deposeMobilier"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="DeposeMobilier" />
              <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:layout_marginLeft="20dp"
                android:layout_marginRight="20dp"
                android:layout_marginTop="10dp"
                android:orientation="horizontal" >
     
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="RemarqueMob : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/remarqueMob"
                    android:layout_width="match_parent"
                    android:layout_height="110dp"
                    android:inputType="textMultiLine" />
            </LinearLayout>
             <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="10dp"
                android:layout_marginLeft="20dp"
                android:layout_marginRight="20dp"
                android:layout_marginTop="10dp"
                android:orientation="horizontal" >
     
                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="Remarque : "
                    android:textColor="#FF0000"
                    android:textStyle="bold" />
     
                <EditText
                    android:id="@+id/remarque"
                    android:layout_width="match_parent"
                    android:layout_height="110dp"
                    android:inputType="textMultiLine" />
            </LinearLayout>
     
     
                   <TextView
                    android:id="@+id/notify"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginTop="20dp"
                    android:layout_gravity="center_horizontal"
                    android:textColor="#FF0000"
                    android:textStyle="bold" />   
                    <LinearLayout
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:layout_marginBottom="10dp"
                     android:layout_marginLeft="20dp"
                     android:layout_marginRight="20dp"
                     android:layout_marginTop="20dp">
                    <Button
                    android:id="@+id/btnAdd"
                    android:layout_width="140dp"
                    android:layout_height="40dp"
                    android:text="Ajouter Pièces Jointes" /> 
                     <Button
                    android:id="@+id/delete"
                    android:layout_width="100dp"
                    android:layout_height="40dp"
                    android:layout_marginLeft="10dp"
                    android:text="Supprimer" />
                 </LinearLayout>   
     
                 <ListView
                     android:id="@+id/list"
                     android:layout_width="300dp"
                     android:layout_height="wrap_content"
                     android:layout_marginLeft="10dp"
                     android:background="#eee"
                     android:choiceMode="multipleChoice" />
     
     
     
     </LinearLayout>
    </ScrollView>
     
     
     </RelativeLayout >
    Merci ancore

  10. #10
    Expert éminent

    Homme Profil pro
    Ingénieur systèmes et réseaux
    Inscrit en
    Février 2007
    Messages
    4 253
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Ingénieur systèmes et réseaux
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Février 2007
    Messages : 4 253
    Points : 7 618
    Points
    7 618
    Billets dans le blog
    3
    Par défaut
    forcément puisqu'il est marqué "en dessous" du layout signature qui est aligné avec le bas du layout global...

    Il faut commencer par le bouton...
    Puis mettre le layout signature au dessus (above)
    Puis mettre la scroll-view au dessus du layout signature.
    N'oubliez pas de cliquer sur mais aussi sur si un commentaire vous a été utile !
    Et surtout

  11. #11
    Membre régulier
    Profil pro
    Inscrit en
    Avril 2008
    Messages
    501
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2008
    Messages : 501
    Points : 102
    Points
    102
    Par défaut
    Merci ca à l'air de fonctionné mais faut que je revoie certaine chose, donc pour conclure pense tu que le contenue s'adaptera au divers écran.

Discussions similaires

  1. Layout bottom mise en page
    Par colin-b dans le forum Composants graphiques
    Réponses: 2
    Dernier message: 01/08/2011, 21h14
  2. layout right left Mise en page d'un layout
    Par colin-b dans le forum Composants graphiques
    Réponses: 5
    Dernier message: 09/06/2011, 11h08
  3. SWT - Mise en page avec les layouts
    Par Klimium dans le forum SWT/JFace
    Réponses: 10
    Dernier message: 22/02/2009, 12h56
  4. Mise en page Layout
    Par Nad1 dans le forum AWT/Swing
    Réponses: 8
    Dernier message: 08/05/2006, 21h59

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