MAJ affichage general

This commit is contained in:
2026-03-25 18:54:14 +01:00
parent e24964ff7a
commit 1e98c0321a
4 changed files with 209 additions and 184 deletions
+59 -55
View File
@@ -1,56 +1,60 @@
<?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="match_parent"
android:orientation="vertical"
android:padding="16dp">
<TextView
android:id="@+id/tvScore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Score : 0"
android:textSize="18sp"
android:textStyle="bold"/>
<TextView
android:id="@+id/tvCoups"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Coups : 0"
android:textSize="18sp"/>
<!-- Section pour le Hard Mode -->
<TextView
android:id="@+id/tvObjectif"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Objectif : ..."
android:textStyle="bold"
android:textColor="#CC0000"
android:padding="8dp"
android:visibility="gone"/>
<TextView
android:id="@+id/tvNbObjectifs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Objectifs réussis : 0"
android:paddingLeft="8dp"
android:visibility="gone"/>
<Button
android:id="@+id/btnMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Menu"/>
<sae.chuzzle.VueGrille
android:id="@+id/vueGrille"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
<?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="match_parent"
android:orientation="vertical"
android:padding="16dp"
android:background="#1A1A2E">
<TextView
android:id="@+id/tvScore"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Score : 0"
android:textSize="18sp"
android:textStyle="bold"
android:textColor="#FFFFFF"/>
<TextView
android:id="@+id/tvCoups"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Coups : 0"
android:textSize="18sp"
android:textColor="#AAAACC"/>
<!-- Section pour le Hard Mode -->
<TextView
android:id="@+id/tvObjectif"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Objectif : ..."
android:textStyle="bold"
android:textColor="#E94560"
android:padding="8dp"
android:visibility="gone"/>
<TextView
android:id="@+id/tvNbObjectifs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Objectifs réussis : 0"
android:paddingLeft="8dp"
android:textColor="#E2C94E"
android:visibility="gone"/>
<Button
android:id="@+id/btnMenu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Menu"
android:backgroundTint="#E94560"
android:textColor="#FFFFFF"/>
<sae.chuzzle.VueGrille
android:id="@+id/vueGrille"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
</LinearLayout>
+45 -37
View File
@@ -1,38 +1,46 @@
<?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="match_parent"
android:orientation="vertical"
android:gravity="center"
android:padding="48dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Chuzzle"
android:textSize="48sp"
android:textStyle="bold"
android:gravity="center"
android:layout_marginBottom="64dp"/>
<Button
android:id="@+id/btnNouvellePartie"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Nouvelle Partie"
android:layout_marginBottom="16dp"/>
<Button
android:id="@+id/btnPartieGraine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Partie avec Graine"
android:layout_marginBottom="16dp"/>
<Button
android:id="@+id/btnOptions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Options"/>
<?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="match_parent"
android:orientation="vertical"
android:gravity="center"
android:padding="48dp"
android:background="#1A1A2E">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Chuzzle"
android:textSize="48sp"
android:textStyle="bold"
android:textColor="#E94560"
android:gravity="center"
android:layout_marginBottom="64dp"/>
<Button
android:id="@+id/btnNouvellePartie"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Nouvelle Partie"
android:backgroundTint="#E94560"
android:textColor="#FFFFFF"
android:layout_marginBottom="16dp"/>
<Button
android:id="@+id/btnPartieGraine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Partie avec Graine"
android:backgroundTint="#E94560"
android:textColor="#FFFFFF"
android:layout_marginBottom="16dp"/>
<Button
android:id="@+id/btnOptions"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Options"
android:backgroundTint="#E94560"
android:textColor="#FFFFFF"/>
</LinearLayout>
+58 -54
View File
@@ -1,54 +1,58 @@
<?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="match_parent"
android:orientation="vertical"
android:padding="48dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Options"
android:textSize="32sp"
android:textStyle="bold"
android:gravity="center"
android:layout_marginBottom="64dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Hard mode (verrous)"
android:textSize="18sp"/>
<CheckBox
android:id="@+id/checkHard"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleX="1.5"
android:scaleY="1.5"
android:layout_marginEnd="16dp"
android:minWidth="48dp"
android:minHeight="48dp"/>
</LinearLayout>
<Button
android:id="@+id/btnBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Retour"
android:layout_marginTop="32dp">
</Button>
</LinearLayout>
<?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="match_parent"
android:orientation="vertical"
android:padding="48dp"
android:background="#1A1A2E">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Options"
android:textSize="32sp"
android:textStyle="bold"
android:textColor="#E94560"
android:gravity="center"
android:layout_marginBottom="64dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Hard mode (verrous)"
android:textSize="18sp"
android:textColor="#FFFFFF"/>
<CheckBox
android:id="@+id/checkHard"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleX="1.5"
android:scaleY="1.5"
android:buttonTint="#E94560"
android:layout_marginEnd="16dp"
android:minWidth="48dp"
android:minHeight="48dp"/>
</LinearLayout>
<Button
android:id="@+id/btnBack"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Retour"
android:backgroundTint="#E94560"
android:textColor="#FFFFFF"
android:layout_marginTop="32dp">
</Button>
</LinearLayout>
+47 -38
View File
@@ -1,39 +1,48 @@
<?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="match_parent"
android:orientation="vertical"
android:gravity="center"
android:padding="48dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Entrez une graine"
android:textSize="24sp"
android:gravity="center"
android:layout_marginBottom="32dp"/>
<EditText
android:id="@+id/etGraine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Ex : 12345"
android:inputType="number"
android:layout_marginBottom="32dp"/>
<Button
android:id="@+id/btnJouer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Jouer"/>
<Button
android:id="@+id/btnBack"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Retour"
android:layout_marginTop="32dp"/>
<?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="match_parent"
android:orientation="vertical"
android:gravity="center"
android:padding="48dp"
android:background="#1A1A2E">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Entrez une graine"
android:textSize="24sp"
android:textColor="#FFFFFF"
android:gravity="center"
android:layout_marginBottom="32dp"/>
<EditText
android:id="@+id/etGraine"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Ex : 12345"
android:inputType="number"
android:textColor="#FFFFFF"
android:textColorHint="#AAAACC"
android:backgroundTint="#E94560"
android:layout_marginBottom="32dp"/>
<Button
android:id="@+id/btnJouer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Jouer"
android:backgroundTint="#E94560"
android:textColor="#FFFFFF"/>
<Button
android:id="@+id/btnBack"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="Retour"
android:backgroundTint="#E94560"
android:textColor="#FFFFFF"
android:layout_marginTop="32dp"/>
</LinearLayout>