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 :

design pour ListView et Bouton


Sujet :

Composants graphiques Android

Mode arborescent

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Juillet 2016
    Messages
    19
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Canada

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juillet 2016
    Messages : 19
    Par défaut design pour ListView et Bouton
    Bonjour, J'aimerai modifier ma vue afin d'obtenir celle presente sur le design joint au fichier.
    les 3 autres boutons ont ete mis en commentaires, parcequ'ils ne repondent pas à mes attentes.
    Merci de bien vouloir m'aider

    Code xml : 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
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:orientation="horizontal" android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:baselineAligned="false">
     
        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical">
     
            <TextView
                android:id="@+id/txtTextView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="fill"
                android:text="TextView"
                android:textAlignment="center"
                android:textSize="20dp" />
     
            <Button
                android:id="@+id/btnBouton1"
                android:layout_gravity="fill"
                android:textAlignment="center"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Bouton1" />
     
            <Button
                android:id="@+id/btnBouton2"
                android:layout_gravity="fill"
                android:textAlignment="center"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Bouton2" />
     
            <Button
                android:id="@+id/btnBouton3"
                android:layout_gravity="fill"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Bouton3" />
     
            <Button
                android:id="@+id/btnBouton4"
                android:layout_gravity="fill"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Bouton4" />
     
            <Button
                android:id="@+id/btnBouton5"
                android:layout_gravity="fill"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="Bouton5"
                android:textAlignment="center" />
     
     
        </LinearLayout>
     
        <ListView
     
            android:id="@+id/lstListView1"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1" />
     
        <ListView
            android:layout_width="0dp"
            android:id="@+id/ListView2"
            android:layout_height="wrap_content"
            android:layout_weight="1" />
     
        <!--<Button
            android:id="@+id/btnBouton6"
            android:layout_gravity="fill"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Bouton6" />
     
        <Button
            android:id="@+id/btnBouton7"
            android:layout_gravity="fill"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Bouton7" />
     
        <Button
            android:id="@+id/btnBouton8"
            android:layout_gravity="fill"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Bouton8"
            android:textAlignment="center" />-->
     
     
    </LinearLayout>
    Fichiers attachés Fichiers attachés

Discussions similaires

  1. pour centrer un bouton
    Par darkmalak01 dans le forum Composants VCL
    Réponses: 7
    Dernier message: 28/09/2005, 08h31
  2. code pour une bascule (bouton)
    Par kikibel dans le forum Access
    Réponses: 8
    Dernier message: 16/09/2005, 13h25
  3. [Observateur] existe-t-il un package proposant ce design pour C# ?
    Par sopi dans le forum Design Patterns
    Réponses: 1
    Dernier message: 25/05/2005, 20h48
  4. [FLASH MX2004] Problème pour faire un bouton play
    Par melanie075 dans le forum Flash
    Réponses: 13
    Dernier message: 16/12/2004, 22h55
  5. [débutant] 2 alternatives pour un même bouton
    Par pacha1 dans le forum Composants
    Réponses: 5
    Dernier message: 25/06/2004, 11h13

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