From 27310d18e7c88ebb0b031812044e72ed9dd9aecb Mon Sep 17 00:00:00 2001
From: m23pfeff <melvil.pfeffer@imt-atlantique.net>
Date: Wed, 4 Dec 2024 10:27:52 +0100
Subject: [PATCH] changed some pages as in Figma and run tutorial from photo
 page operational

---
 .../example/myapplication/HomeActivity.java   |  17 +-
 .../com/example/myapplication/PhotoPage.java  |  27 ++-
 .../myapplication/TutorialActivity.java       |  18 +-
 app/src/main/res/drawable/camera_tiny.png     | Bin 0 -> 455 bytes
 app/src/main/res/drawable/folder.png          | Bin 0 -> 335 bytes
 .../main/res/drawable/shape_transparent.xml   |   7 +-
 .../main/res/layout/fragment_photo_page.xml   | 169 +++++++++++-------
 .../main/res/layout/fragment_stats_page.xml   | 150 +++++++++-------
 app/src/main/res/values/strings.xml           |   6 +-
 9 files changed, 238 insertions(+), 156 deletions(-)
 create mode 100644 app/src/main/res/drawable/camera_tiny.png
 create mode 100644 app/src/main/res/drawable/folder.png

diff --git a/app/src/main/java/com/example/myapplication/HomeActivity.java b/app/src/main/java/com/example/myapplication/HomeActivity.java
index f24543c..1e2be4c 100644
--- a/app/src/main/java/com/example/myapplication/HomeActivity.java
+++ b/app/src/main/java/com/example/myapplication/HomeActivity.java
@@ -11,19 +11,25 @@ public class HomeActivity extends AppCompatActivity {
     @Override
     protected void onResume() {
         super.onResume();
+
+        // If tutorial ran from photo page
+        boolean fromPhotoPage = getIntent().getBooleanExtra("FROM_PHOTO_PAGE", false);
+        if (fromPhotoPage) runTutorial(true);
+
         String tutorialKey = "FIRST_TIME_TUTORIAL";
         boolean preferences = getIntent().getBooleanExtra("PREFERENCES",true);
         if (!preferences) getPreferences(MODE_PRIVATE).edit().putBoolean(tutorialKey, false).apply();
         boolean firstTime = getPreferences(MODE_PRIVATE).getBoolean(tutorialKey, true);
         if (firstTime) {
-            runTutorial();
+            runTutorial(false);
         }
     }
 
-    private void runTutorial() {
-        Intent intent = new Intent(HomeActivity.this, TutorialActivity.class);
-        startActivity(intent);
-        finish();
+    private void runTutorial(boolean fromPhotoPage) {
+            Intent intent = new Intent(HomeActivity.this, TutorialActivity.class);
+            intent.putExtra("FROM_PHOTO_PAGE", fromPhotoPage);
+            startActivity(intent);
+            finish();
     }
 
     @Override
@@ -83,7 +89,6 @@ public class HomeActivity extends AppCompatActivity {
         };
         photoButton.setOnClickListener(listenerPhotoButton);
     }
-
     /**
      * A method to go to the learning page
      * @param pageToGo a string to signify to which page we want to go
diff --git a/app/src/main/java/com/example/myapplication/PhotoPage.java b/app/src/main/java/com/example/myapplication/PhotoPage.java
index ffa9061..b6bc8d8 100644
--- a/app/src/main/java/com/example/myapplication/PhotoPage.java
+++ b/app/src/main/java/com/example/myapplication/PhotoPage.java
@@ -5,7 +5,6 @@ import android.content.ContentResolver;
 import android.content.Intent;
 import android.content.pm.PackageManager;
 import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
 import android.net.Uri;
 import android.os.Build;
 import android.os.Bundle;
@@ -26,7 +25,6 @@ import android.widget.ImageView;
 import android.widget.TextView;
 
 import java.io.IOException;
-import java.util.List;
 
 public class PhotoPage extends Fragment {
     private static final int CAMERA_REQUEST_CODE = 3;
@@ -34,7 +32,7 @@ public class PhotoPage extends Fragment {
     private static final int CAMERA_PERMISSION_REQUEST_CODE = 100;
 
     Button cameraButton, folderButton;
-    TextView textView, txtView;
+    TextView textPredictionOutput, textProbabilityOutput;
     ImageView imageView;
 
     int imageSize = 256;
@@ -47,9 +45,10 @@ public class PhotoPage extends Fragment {
         // Initialize UI elements
         cameraButton = view.findViewById(R.id.camera_button);
         folderButton = view.findViewById(R.id.folder_button);
-        textView = view.findViewById(R.id.textView);
-        txtView = view.findViewById(R.id.txtView);
-        imageView = view.findViewById(R.id.imageView);
+        textPredictionOutput = view.findViewById(R.id.textPredictionOutput);
+        textProbabilityOutput = view.findViewById(R.id.textProbabilityOutput);
+        imageView = view.findViewById(R.id.main_image_display);
+        Button seeTutoButton = view.findViewById(R.id.see_tuto);
 
         // Set up button click listeners
         cameraButton.setOnClickListener(new View.OnClickListener() {
@@ -73,6 +72,18 @@ public class PhotoPage extends Fragment {
             }
         });
 
+        View.OnClickListener lSeeTutoButton = new View.OnClickListener() {
+            @Override
+            public void onClick(View view) {
+                Intent intent = new Intent(getActivity(), HomeActivity.class);
+                intent.putExtra("FROM_PHOTO_PAGE", true);
+                startActivity(intent);
+                getActivity().finish();
+            }
+        };
+
+        seeTutoButton.setOnClickListener(lSeeTutoButton);
+
         return view;
     }
 
@@ -130,7 +141,7 @@ public class PhotoPage extends Fragment {
             scaledBitmap = Bitmap.createScaledBitmap(annotatedImage, (int) width, (int) height, true);
             imageView.setImageBitmap(scaledBitmap);
             //TextView textView = getView().findViewById(R.id.textView2);
-            textView.setText(outputPredictedImage.toString());
+            textPredictionOutput.setText(outputPredictedImage.toString());
 
         } catch (IOException e) {
             throw new RuntimeException(e);
@@ -148,7 +159,7 @@ public class PhotoPage extends Fragment {
                 startActivityForResult(cameraIntent, CAMERA_REQUEST_CODE);
             } else {
                 Log.e("PhotoPage", "Camera permission denied");
-                textView.setText("Camera permission denied. Please allow it to use this feature.");
+                textPredictionOutput.setText("Camera permission denied. Please allow it to use this feature.");
             }
         }
     }
diff --git a/app/src/main/java/com/example/myapplication/TutorialActivity.java b/app/src/main/java/com/example/myapplication/TutorialActivity.java
index 924e127..2e34661 100644
--- a/app/src/main/java/com/example/myapplication/TutorialActivity.java
+++ b/app/src/main/java/com/example/myapplication/TutorialActivity.java
@@ -25,6 +25,8 @@ public class TutorialActivity extends AppCompatActivity {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_tutorial);
 
+        boolean fromPhotoPage = getIntent().getBooleanExtra("FROM_PHOTO_PAGE", false);
+
         ViewPager2 viewPager2=findViewById(R.id.tutorial_viewpager);
 
         List<Integer> layouts = Arrays.asList(
@@ -36,13 +38,21 @@ public class TutorialActivity extends AppCompatActivity {
         viewPager2.setAdapter(adapter);
         LinearLayout dotsLayout = findViewById(R.id.dots_layout);
         Button tutoEndButton = findViewById(R.id.tuto_end_button);
+
         View.OnClickListener lTutoEndButton = new View.OnClickListener() {
             @Override
             public void onClick(View view) {
-                Intent intent = new Intent(TutorialActivity.this, HomeActivity.class);
-                intent.putExtra("PREFERENCES", false);
-                startActivity(intent);
-                finish();
+                if (fromPhotoPage) {
+                    Intent intent = new Intent(TutorialActivity.this, PublicActivity.class);
+                    intent.putExtra("TARGET_FRAGMENT", "PhotoPage");
+                    startActivity(intent);
+                    finish();
+                } else {
+                    Intent intent = new Intent(TutorialActivity.this, HomeActivity.class);
+                    intent.putExtra("PREFERENCES", false);
+                    startActivity(intent);
+                    finish();
+                }
             }
         };
         tutoEndButton.setOnClickListener(lTutoEndButton);
diff --git a/app/src/main/res/drawable/camera_tiny.png b/app/src/main/res/drawable/camera_tiny.png
new file mode 100644
index 0000000000000000000000000000000000000000..97495e62d1f21e4ccd95aa1e8c8b50145f513316
GIT binary patch
literal 455
zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7I14-?iy0WWg+Z8+Vb&Z8
z1_lPk;vjb?hIQv;UNSH+u%tWsIx;Y9?C1WI$jZRL7~|>U7*fHwH0X40vxC6hqi&DH
zycqNjob+UE<XTkXpw$t}xTMKK^vKEsWvqo-3g&j=1*{(>S)TMVU*hW6@MNMJbN=(U
z`+gdfE&XU{(D!($iYLF)HIuW`GiN#4hrePD6ser^Ib2}Nu62@@KCQnkirKg>ne27l
z#6Rg)(wBOsi(7N8)fG+~ZPn=d;Pb%d{fPr%LX);L%zbD2qdYWpb)V0&*H*DVTJG#Q
zt=zgvr~X{wx`*l;bY8nonWo~|ut6c!;{Jkv{D0(Iiscn0zBKTpu3ecXuu_KizI4L-
z<ekaBB@R`~ZZGsYe%dNzO=D%UuS`tC$GgEgr;F|<zBnoUJNrS>Cnl2@9))JJS2DfX
zV)*{~`QHtTG^~4$w@=c2b&t{NpzSOMuUr0F8Sc+6Wrvv8crMO0G+WuQ=5FI|1D>nW
zGZH1-zx7{K`*-14r*zrEx#rWn3XbybzH-p=!A1A7wSSpP-QWL+Ncii(z`(%Z>FVdQ
I&MBb@0Q&g8C;$Ke

literal 0
HcmV?d00001

diff --git a/app/src/main/res/drawable/folder.png b/app/src/main/res/drawable/folder.png
new file mode 100644
index 0000000000000000000000000000000000000000..58d61251a8604a183cf1867068252bef8cc648f7
GIT binary patch
literal 335
zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7I14-?iy0WWg+Z8+Vb&Z8
z1_lPk;vjb?hIQv;UNSH+u%tWsIx;Y9?C1WI$jZRL@Wj)_F{FZVYtU}qW&;7+=nK^>
zS_^n4r?gDql~D8%a4T>-!P4WP#bTl%y~NqXB3(qs+tBRPbI)sy@Ap2RJfHDj=eAt`
z*z0q1Ws(Gob=qgTaPS}gu;ZqKxb~wi&PZWyMT?~-GnRRFy)QbS;`DX?zV|nk`W{CJ
zF4pkc7*k-sc2!p+uN9;IhMZZ;OuqIAd#HGRY7m`KC9>~GPD659X>5A5tJVG4u^M;x
zSGD>bVObY(<n~Ib`^?-1olG(T<qeX?KNwE4n8(cQIjeeL`+<VDA0}%v-~ax(P$pHG
k!8~QkQ3D>!KTQ6P;i)Xm$<t3TFfcH9y85}Sb4q9e08=`5@Bjb+

literal 0
HcmV?d00001

diff --git a/app/src/main/res/drawable/shape_transparent.xml b/app/src/main/res/drawable/shape_transparent.xml
index 8d4d571..f8785ca 100644
--- a/app/src/main/res/drawable/shape_transparent.xml
+++ b/app/src/main/res/drawable/shape_transparent.xml
@@ -3,14 +3,9 @@
     android:shape="rectangle"   >
 
     <solid
-        android:color="@color/white">
+        android:color="#99FFFFFF">
     </solid>
 
-    <stroke
-        android:width="2dp"
-        android:color="#00FFFFFF" >
-    </stroke>
-
     <padding
         android:left="5dp"
         android:top="5dp"
diff --git a/app/src/main/res/layout/fragment_photo_page.xml b/app/src/main/res/layout/fragment_photo_page.xml
index e5b7601..51807a8 100644
--- a/app/src/main/res/layout/fragment_photo_page.xml
+++ b/app/src/main/res/layout/fragment_photo_page.xml
@@ -1,98 +1,135 @@
 <?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<FrameLayout 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:layout_width="match_parent"
     android:layout_height="match_parent"
     tools:context=".PhotoPage">
 
-    <!-- Prediction Text -->
+    <!-- To see the tutorial again -->
+    <Button
+        android:id="@+id/see_tuto"
+        android:layout_width="320dp"
+        android:layout_height="wrap_content"
+        style="@style/ButtonAppearance"
+        android:backgroundTint="#99FFFFFF"
+        android:layout_gravity="center_horizontal"
+        android:layout_marginTop="180dp"
+        android:text="@string/see_tuto"
+        android:textColor="@color/black"
+        android:fontFamily="@font/inter"
+        android:textSize="15sp"/>
 
-    <!-- Accuracy Text -->
+    <FrameLayout
+        android:layout_width="320dp"
+        android:layout_height="386dp"
+        android:background="@drawable/shape_transparent"
+        android:layout_gravity="center">
+        <!-- Camera Button -->
+        <Button
+            android:id="@+id/camera_button"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="@string/camera"
+            android:textSize="20sp"
+            android:fontFamily="@font/inter"
+            android:textColor="#D9D9D9"
+            android:backgroundTint="#517293"
+            style="@style/ButtonAppearance"
+            android:layout_gravity="bottom|start"
+            android:layout_marginStart="6dp"
+            android:drawableLeft="@drawable/camera_tiny"/>
+
+        <!-- Folder Button -->
+        <Button
+            android:id="@+id/folder_button"
+            style="@style/ButtonAppearance"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:backgroundTint="#517293"
+            android:text="@string/galerie"
+            android:textSize="20sp"
+            android:fontFamily="@font/inter"
+            android:textColor="#D9D9D9"
+            android:layout_gravity="bottom|end"
+            android:drawableLeft="@drawable/folder"
+            android:layout_marginEnd="6dp"/>
 
+        <!-- Main Image Display -->
+        <ImageView
+            android:id="@+id/main_image_display"
+            android:layout_width="209dp"
+            android:layout_height="209dp"
+            app:layout_constraintBottom_toTopOf="@+id/textPredictionOutput"
+            app:layout_constraintEnd_toEndOf="parent"
+            app:layout_constraintHorizontal_bias="0.507"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            app:layout_constraintVertical_bias="0.101"
+            tools:srcCompat="@tools:sample/avatars"
+            android:layout_gravity="center"/>
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:text="@string/especes"
+            android:textSize="15sp"
+            android:textColor="#D9D9D9"
+            android:paddingHorizontal="40dp"
+            android:fontFamily="@font/inter"
+            android:layout_gravity="center_horizontal|top"
+            android:layout_marginTop="20dp"
+            android:background="@drawable/shape"
+            android:backgroundTint="#517293"/>
+    </FrameLayout>
+    
+    <!-- Prediction Text -->
     <TextView
-        android:id="@+id/textView"
+        android:id="@+id/textPredictionOutput"
         android:layout_width="351dp"
         android:layout_height="28dp"
-        android:layout_marginBottom="196dp"
+        android:layout_marginBottom="146dp"
         android:text=""
         android:textColor="#F12B2B"
         android:textSize="17sp"
         android:textStyle="bold"
-        app:layout_constraintBottom_toBottomOf="parent"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toStartOf="parent" />
-
+        android:layout_gravity="bottom|center_horizontal"/>
+    
+    <!-- Accuracy Text -->
     <TextView
-        android:id="@+id/txtView"
+        android:id="@+id/textProbabilityOutput"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text=""
         android:textColor="#F12B2B"
         android:textSize="17sp"
         android:textStyle="bold"
-        app:layout_constraintBottom_toBottomOf="parent"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintHorizontal_bias="0.476"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toBottomOf="@+id/textView"
-        app:layout_constraintVertical_bias="0.331" />
-
-    <!-- Camera Button -->
-    <Button
-        android:id="@+id/camera_button"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_marginEnd="16dp"
-        android:layout_marginBottom="340dp"
-        android:text="Camera"
-        app:layout_constraintBottom_toBottomOf="parent"
-        app:layout_constraintEnd_toStartOf="@+id/folder_button"
-        app:layout_constraintHorizontal_bias="0.5"
-        app:layout_constraintStart_toStartOf="parent"
-        android:backgroundTint="#517293"
-        style="@style/ButtonAppearance" />
-
-    <!-- Folder Button -->
-    <Button
-        android:id="@+id/folder_button"
-        style="@style/ButtonAppearance"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_marginStart="16dp"
-        android:layout_marginBottom="340dp"
-        android:backgroundTint="#517293"
-        android:text="gallerie"
-        app:layout_constraintBottom_toBottomOf="parent"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintStart_toEndOf="@+id/camera_button" />
-
-    <!-- Main Image Display -->
-    <ImageView
-        android:id="@+id/imageView"
-        android:layout_width="314dp"
-        android:layout_height="288dp"
-        app:layout_constraintBottom_toTopOf="@+id/textView"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintHorizontal_bias="0.507"
-        app:layout_constraintStart_toStartOf="parent"
-        app:layout_constraintTop_toTopOf="parent"
-        app:layout_constraintVertical_bias="0.101"
-        tools:srcCompat="@tools:sample/avatars" />
+        android:layout_gravity="center_horizontal|bottom"
+        android:layout_marginBottom="106dp"/>
 
     <!-- Prediction Label -->
     <TextView
-        android:id="@+id/textView2"
+        android:id="@+id/prediction_label"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_marginBottom="28dp"
+        android:layout_marginBottom="186dp"
         android:text="PREDICTION:"
-        android:textColor="#9E9595"
+        android:textColor="#D9D9D9"
         android:textSize="24sp"
         android:textStyle="bold"
-        app:layout_constraintBottom_toTopOf="@+id/textView"
-        app:layout_constraintEnd_toEndOf="parent"
-        app:layout_constraintHorizontal_bias="0.498"
-        app:layout_constraintStart_toStartOf="parent" />
+        android:layout_gravity="center_horizontal|bottom"/>
 
-</androidx.constraintlayout.widget.ConstraintLayout>
+    <TextView
+        android:id="@+id/learning_page_title"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="50dp"
+        android:layout_marginBottom="60dp"
+        android:background="@drawable/polygon_5"
+        android:paddingTop="30dp"
+        android:paddingEnd="50dp"
+        android:text="@string/photo"
+        android:textAlignment="center"
+        android:textColor="#1E1E1E"
+        android:textSize="38sp" />
+</FrameLayout>
diff --git a/app/src/main/res/layout/fragment_stats_page.xml b/app/src/main/res/layout/fragment_stats_page.xml
index d988794..f664298 100644
--- a/app/src/main/res/layout/fragment_stats_page.xml
+++ b/app/src/main/res/layout/fragment_stats_page.xml
@@ -1,85 +1,105 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- res/layout/fragment_stats.xml -->
 <FrameLayout
-    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">
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto">
 
-    <TextView
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:background="@drawable/shape_transparent"
-        android:layout_gravity="center"
-        android:layout_marginLeft="25dp"
-        android:layout_marginRight="25dp"
-        android:layout_marginBottom="190dp"
-        android:text="@string/connexion_text"
-        android:textAlignment="center"
-        android:textSize="17sp"/>
-    <LinearLayout
-        android:layout_gravity="center"
+
+
+    <FrameLayout
         android:layout_width="match_parent"
-        android:layout_height="wrap_content"
+        android:layout_height="match_parent"
         android:orientation="vertical"
-        android:padding="15dp"
-        android:layout_margin="25dp"
-        android:background="@drawable/shape_transparent">
+        android:padding="16dp">
+
         <TextView
-            android:layout_marginTop="10dp"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:text="@string/user_name"
+            android:background="@drawable/shape_transparent"
+            android:layout_gravity="center"
+            android:layout_marginLeft="25dp"
+            android:layout_marginRight="25dp"
+            android:layout_marginBottom="190dp"
+            android:text="@string/connexion_text"
+            android:textAlignment="center"
             android:textSize="17sp"/>
-
-        <!-- Username Field -->
-        <EditText
-            android:id="@+id/usernameField"
+        <LinearLayout
+            android:layout_gravity="center"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:inputType="text"
-            android:padding="12dp"
-            android:layout_marginBottom="12dp"/>
+            android:orientation="vertical"
+            android:padding="15dp"
+            android:layout_margin="25dp"
+            android:background="@drawable/shape_transparent">
+            <TextView
+                android:layout_marginTop="10dp"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/user_name"
+                android:textSize="17sp"/>
 
-        <TextView
-            android:layout_marginTop="10dp"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="@string/password"
-            android:textSize="17sp"/>
-<!--        <com.google.android.material.textfield.TextInputLayout
-            android:id="@+id/passwordField"
-            android:layout_width="match_parent"
-            android:layout_height="45dp">
+            <!-- Username Field -->
+            <EditText
+                android:id="@+id/usernameField"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:inputType="text"
+                android:padding="12dp"
+                android:layout_marginBottom="12dp"/>
 
-            <com.google.android.material.textfield.TextInputEditText
+            <TextView
+                android:layout_marginTop="10dp"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/password"
+                android:textSize="17sp"/>
+    <!--        <com.google.android.material.textfield.TextInputLayout
+                android:id="@+id/passwordField"
                 android:layout_width="match_parent"
-                android:layout_height="wrap_content" />
-        </com.google.android.material.textfield.TextInputLayout>
--->
+                android:layout_height="45dp">
 
-        <!-- Password Field -->
-        <EditText
-            android:id="@+id/passwordField"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:inputType="textPassword"
-            android:padding="12dp"
-            android:layout_marginBottom="12dp"/>
+                <com.google.android.material.textfield.TextInputEditText
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content" />
+            </com.google.android.material.textfield.TextInputLayout>
+    -->
 
-        <!-- Login Button -->
-        <Button
-            android:layout_marginTop="10dp"
-            android:id="@+id/loginButton"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="@string/login"
-            android:padding="12dp"
-            android:layout_marginBottom="16dp"
-            android:layout_gravity="center_horizontal"
-            android:backgroundTint="#517293"
-            style="@style/ButtonAppearance"/>
-    </LinearLayout>
+            <!-- Password Field -->
+            <EditText
+                android:id="@+id/passwordField"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:inputType="textPassword"
+                android:padding="12dp"
+                android:layout_marginBottom="12dp"/>
+
+            <!-- Login Button -->
+            <Button
+                android:layout_marginTop="10dp"
+                android:id="@+id/loginButton"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/login"
+                android:padding="12dp"
+                android:layout_marginBottom="16dp"
+                android:layout_gravity="center_horizontal"
+                android:backgroundTint="#517293"
+                style="@style/ButtonAppearance"/>
+        </LinearLayout>
+    </FrameLayout>
 
-</FrameLayout>
+    <TextView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginTop="50dp"
+        android:layout_marginBottom="60dp"
+        android:background="@drawable/polygon_5"
+        android:paddingTop="30dp"
+        android:paddingEnd="50dp"
+        android:text="@string/stats"
+        android:textAlignment="center"
+        android:textColor="#1E1E1E"
+        android:textSize="38sp" />
+</FrameLayout>
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 2382e86..989067f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -9,7 +9,7 @@
     <string name="learn">Apprendre</string>
     <string name="settings">Paramètres</string>
     <string name="photo">Identifier</string>
-    <string name="stats">Statistiques</string>
+    <string name="stats">Mode Pro</string>
     <string name="login">Se connecter</string>
     <string name="user_name">Nom d\'utilisateur</string>
     <string name="password">Password</string>
@@ -63,4 +63,8 @@
     <string name="tuto_app">En apprendre plus sur\nl\'avifaune présente à Lorient</string>
     <string name="tuto_page_app">Sur la page Apprendre</string>
     <string name="tuto_end">C\'est parti</string>
+    <string name="camera">Caméra</string>
+    <string name="galerie">Galerie</string>
+    <string name="especes">Espèce(s) identifiée(s)</string>
+    <string name="see_tuto">Revoir le tutoriel</string>
 </resources>
\ No newline at end of file
-- 
GitLab