- Nouveau modèle : groupes nommés (famille, amis…) stockés en JSON dans les préférences, avec migration automatique de l'ancienne liste de numéros vers un groupe « Mes contacts » - Écran principal : la roue crantée (doublon) disparaît ; la carte du bas affiche des puces de sélection du groupe actif + ses numéros, et ouvre la gestion des groupes - Paramètres : nom (enregistré à la saisie) + liste des groupes ; création, édition et suppression via boîte de dialogue avec validation des numéros - Prefs.kt : accès centralisé aux préférences Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
33 lines
1.2 KiB
XML
33 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.material.card.MaterialCardView 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="wrap_content"
|
|
android:layout_marginBottom="10dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
app:cardCornerRadius="14dp"
|
|
app:cardElevation="2dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="14dp">
|
|
|
|
<TextView
|
|
android:id="@+id/groupName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:id="@+id/groupPhones"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:textSize="14sp" />
|
|
</LinearLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|