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 :

Je ne veux pas que le clavier déplace mes éléments


Sujet :

Composants graphiques Android

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Candidat au Club
    Homme Profil pro
    dessinateur 3d - Développeur Lisp et Grasshopper
    Inscrit en
    Août 2018
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : dessinateur 3d - Développeur Lisp et Grasshopper

    Informations forums :
    Inscription : Août 2018
    Messages : 2
    Par défaut Je ne veux pas que le clavier déplace mes éléments
    Bonjour
    Je suis en train de livrer bataille sur mon appli mais je n'y arrive pas.
    Je joints 2 images pour illustrer :
    Je possède une interface avec une listView et des boutons. Ils sont positionnés comme je le veux.
    Mais lorsque je fais une saisie, le clavier s'affiche et mes éléments s'adaptent. Or, dans certains cas, on ne voit plus le champs dans lequel on écrit ( cf images ) .
    Comment faire pour que rien ne bouge ? Je n'y arrive pas... J'ai eu beau chercher sur le net, je n'ai pas réussi à me décoincer.
    Merci d'avance.
    Arnaud

    Nom : capture1.png
Affichages : 116
Taille : 39,3 Ko

    Je clique dans ma listview sur "quantité"

    Nom : capture 2.png
Affichages : 119
Taille : 33,2 Ko

    je ne vois plus ma saisie...

    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
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/Layout_Commandes"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:background="@color/white"
        android:gravity="center"
        tools:context=".Commandes"
        android:layout_weight="100"
        android:layout_margin="5dp"
        >
     
        <TextView
                android:id="@+id/et_CommandeTitle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_margin="5dp"
                android:background="@drawable/bg_round"
                android:padding="5dp"
                android:text="NomTypeCommande"
                android:textAlignment="center"
                android:textColor="@color/design_default_color_primary_variant"
                android:textColorHint="@color/black"
                android:textSize="15dp"
                android:textStyle="bold"/>
     
        <ListView
            android:id="@+id/myListViewCommand"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_above="@+id/et_SetName"
            android:layout_below="@+id/textView"
            android:layout_marginStart="5dp"
            android:layout_marginTop="5dp"
            android:layout_marginEnd="5dp"
            android:layout_marginBottom="5dp"
            android:background="@drawable/bg_round"
            android:minHeight="150dp"
            android:padding="10dp"
            android:scrollbarSize="10dp"
            android:smoothScrollbar="true"
            tools:listitem="@layout/customlayoutcommande" />
     
        <EditText
            android:id="@+id/et_SetName"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_above="@+id/et_NumPhone"
            android:layout_margin="5dp"
            android:background="@drawable/bg_round"
            android:hint="Votre nom et prénom"
            android:padding="5dp"
            android:textColor="@color/black"
            android:textColorHint="@android:color/darker_gray"
            android:textSize="15dp"/>
     
        <EditText
            android:id="@+id/et_NumPhone"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_above="@+id/et_CommandeTotal"
            android:layout_margin="5dp"
            android:background="@drawable/bg_round"
            android:ems="10"
            android:hint="Votre téléphone"
            android:inputType="number"
            android:padding="5dp"
            android:textColor="@color/black"
            android:textColorHint="@android:color/darker_gray"
            android:textSize="15dp"/>
     
     
        <TextView
            android:id="@+id/textView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/et_CommandeTitle"
            android:layout_margin="5dp"
            android:text="Faire défiler dans la rubrique ci-dessous"
            android:textColor="@color/black"/>
     
        <Button
            android:id="@+id/butSendCmd"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_alignParentBottom="true"
            android:layout_margin="5dp"
            android:background="@drawable/bg_round"
            android:text="Générer le bon par mail"
            android:textColor="@color/white"
            android:textSize="15dp"/>
     
        <TextView
            android:id="@+id/et_CommandeTotal"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_above="@+id/butSendCmd"
            android:layout_margin="5dp"
            android:background="@drawable/bg_round"
            android:hint="Total automatique après saisie"
            android:minHeight="30dp"
            android:padding="5dp"
            android:textAlignment="center"
            android:textColor="@android:color/holo_red_dark"
            android:textColorHint="@android:color/darker_gray"
            android:textSize="15dp"/>
     
        </RelativeLayout>

    Sur une autre taille d'écran, c'est moins flagrant mais ce n'est pas ce que je veux...

    Nom : capture 3.png
Affichages : 117
Taille : 25,4 Ko

  2. #2
    Candidat au Club
    Homme Profil pro
    dessinateur 3d - Développeur Lisp et Grasshopper
    Inscrit en
    Août 2018
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Activité : dessinateur 3d - Développeur Lisp et Grasshopper

    Informations forums :
    Inscription : Août 2018
    Messages : 2
    Par défaut
    Après des heures de recherche c'était tout bête...
    android:windowSoftInputMode="adjustPan" dans le manifest...

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

Discussions similaires

  1. Réponses: 1
    Dernier message: 02/02/2019, 17h42
  2. Réponses: 3
    Dernier message: 23/10/2010, 02h55
  3. Je veux pas que mon service se ferme
    Par Mister Ghazi dans le forum Développement Mobile en Java
    Réponses: 0
    Dernier message: 29/07/2010, 10h15
  4. Réponses: 19
    Dernier message: 02/07/2007, 18h38
  5. Réponses: 2
    Dernier message: 08/08/2006, 22h17

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