From bd116b415edf8dff32cdf787c33a40ed8c77ce18 Mon Sep 17 00:00:00 2001
From: Axel Saint-maxin <axel.saintmaxin.etu@unvi-lille.fr>
Date: Thu, 11 Apr 2024 14:11:57 +0200
Subject: [PATCH] Exercice 2 Fait

---
 .../fr/iutlille/ctp2024/MainActivity.java     |  2 +-
 app/src/main/res/layout/main.xml              | 31 +++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 app/src/main/res/layout/main.xml

diff --git a/app/src/main/java/fr/iutlille/ctp2024/MainActivity.java b/app/src/main/java/fr/iutlille/ctp2024/MainActivity.java
index 3189b9f..c620bdd 100755
--- a/app/src/main/java/fr/iutlille/ctp2024/MainActivity.java
+++ b/app/src/main/java/fr/iutlille/ctp2024/MainActivity.java
@@ -9,6 +9,6 @@ public class MainActivity extends AppCompatActivity {
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
-        setContentView(R.layout.activity_main);
+        setContentView(R.layout.main);
     }
 }
\ No newline at end of file
diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml
new file mode 100644
index 0000000..cef4fd8
--- /dev/null
+++ b/app/src/main/res/layout/main.xml
@@ -0,0 +1,31 @@
+<RelativeLayout
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    android:orientation="horizontal">
+
+    <TextView
+        android:id="@+id/textview1"
+        android:text="Super Tâches"
+        android:textSize="120px"
+        android:textAlignment="center"
+        android:layout_height="wrap_content"
+        android:layout_width="match_parent"
+        android:layout_margin="20dp"/>
+
+    <Button
+        android:id="@+id/button1"
+        android:text="MET TÂCHES"
+        android:layout_below="@id/textview1"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content" />
+
+    <Button
+        android:id="@+id/button2"
+        android:text="QUITTER"
+        android:layout_below="@id/button1"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content" />
+
+</RelativeLayout>
+
-- 
GitLab