3 pièce(s) jointe(s)
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
Pièce jointe 615031
Je clique dans ma listview sur "quantité"
Pièce jointe 615032
je ne vois plus ma saisie...
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 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...
Pièce jointe 615033