maposition/app/src/main/res/layout/dialog_recipient.xml
Cosano-star 39ee74b0bf v1.7 : destinataires nommés et import depuis le répertoire du téléphone
- Modèle : chaque destinataire = nom + numéro (migration auto des formats
  précédents, numéros existants conservés sans nom)
- Nouvel écran d'édition de groupe : liste des destinataires (nom en gras,
  numéro dessous, suppression à la croix, édition au toucher)
- Import depuis les contacts du téléphone via le sélecteur système
  (ACTION_PICK — aucune permission READ_CONTACTS demandée)
- Saisie manuelle via dialogue nom + numéro avec validation et anti-doublon
- Suppression de groupe avec confirmation
- L'écran principal et la liste des groupes affichent les noms plutôt que
  les numéros quand ils existent

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 15:08:13 +02:00

40 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="24dp"
android:paddingTop="16dp"
android:paddingEnd="24dp">
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/recipientNameLayout"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/recipient_name_hint">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/recipientNameInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:maxLength="40" />
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/recipientPhoneLayout"
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:hint="@string/recipient_phone_hint">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/recipientPhoneInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="phone" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>