- 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>
125 lines
5.2 KiB
XML
125 lines
5.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:alpha="0.07"
|
|
android:importantForAccessibility="no"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/bg_watermark" />
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="24dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/backButton"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/back"
|
|
android:src="@drawable/ic_back"
|
|
app:tint="?attr/colorOnSurface" />
|
|
|
|
<TextView
|
|
android:id="@+id/editTitle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:textSize="24sp"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/groupNameLayout"
|
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:hint="@string/group_name_hint">
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/groupNameInput"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:inputType="text"
|
|
android:maxLength="24" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:text="@string/recipients_title"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/recipientsList"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:orientation="vertical" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/pickContactButton"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="6dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/add_from_contacts" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/addManualButton"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/add_manual" />
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/saveGroupButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="52dp"
|
|
android:layout_marginTop="24dp"
|
|
android:text="@string/save"
|
|
app:backgroundTint="@color/brand_blue"
|
|
app:cornerRadius="14dp" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/deleteGroupButton"
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/delete_group"
|
|
android:textColor="?attr/colorError" />
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</FrameLayout>
|