From b6c6da9de0ba61b34f6936f3bfb642f76adffc9d Mon Sep 17 00:00:00 2001
From: Iftakhar Husan <AC5636@student.jamk.fi>
Date: Wed, 13 Sep 2023 22:40:22 +0300
Subject: [PATCH] Exercise 01 done

---
 .../main/res/layout-land/activity_main.xml    | 41 +++++++++++++++++++
 .../app/src/main/res/layout/activity_main.xml | 10 +++++
 .../app/src/main/res/values-fi/strings.xml    |  2 +
 .../app/src/main/res/values/strings.xml       |  2 +
 4 files changed, 55 insertions(+)
 create mode 100644 e01-first-application/app/src/main/res/layout-land/activity_main.xml

diff --git a/e01-first-application/app/src/main/res/layout-land/activity_main.xml b/e01-first-application/app/src/main/res/layout-land/activity_main.xml
new file mode 100644
index 0000000..14f6ea4
--- /dev/null
+++ b/e01-first-application/app/src/main/res/layout-land/activity_main.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout 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=".MainActivity">
+
+    <TextView
+        android:id="@+id/textView"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="Hello World!"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        app:layout_constraintTop_toTopOf="parent" />
+
+    <Button
+        android:id="@+id/button2"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="40dp"
+        android:onClick="buttonClicked"
+        android:text="@string/button_txt"
+        app:layout_constraintBottom_toTopOf="@+id/textView"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent"
+        tools:text="@string/button_txt" />
+
+    <TextView
+        android:id="@+id/textView2"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="40dp"
+        android:text="@string/landscape_txt"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
diff --git a/e01-first-application/app/src/main/res/layout/activity_main.xml b/e01-first-application/app/src/main/res/layout/activity_main.xml
index e036337..36e369d 100644
--- a/e01-first-application/app/src/main/res/layout/activity_main.xml
+++ b/e01-first-application/app/src/main/res/layout/activity_main.xml
@@ -28,4 +28,14 @@
         app:layout_constraintStart_toStartOf="parent"
         tools:text="@string/button_txt" />
 
+    <TextView
+        android:id="@+id/textView2"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_marginBottom="40dp"
+        android:text="@string/portrait_txt"
+        app:layout_constraintBottom_toBottomOf="parent"
+        app:layout_constraintEnd_toEndOf="parent"
+        app:layout_constraintStart_toStartOf="parent" />
+
 </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
diff --git a/e01-first-application/app/src/main/res/values-fi/strings.xml b/e01-first-application/app/src/main/res/values-fi/strings.xml
index f00a079..407e2db 100644
--- a/e01-first-application/app/src/main/res/values-fi/strings.xml
+++ b/e01-first-application/app/src/main/res/values-fi/strings.xml
@@ -3,4 +3,6 @@
     <string name="app_name">First Application(fi)</string>
     <string name="button_txt">Click me!(fi)</string>
     <string name="button_clicked_txt">Button clicked!(fi)</string>
+    <string name="portrait_txt">Portrait fi</string>
+    <string name="landscape_txt">Landscape fi</string>
 </resources>
\ No newline at end of file
diff --git a/e01-first-application/app/src/main/res/values/strings.xml b/e01-first-application/app/src/main/res/values/strings.xml
index 81bec1e..1640f77 100644
--- a/e01-first-application/app/src/main/res/values/strings.xml
+++ b/e01-first-application/app/src/main/res/values/strings.xml
@@ -2,4 +2,6 @@
     <string name="app_name">First Application</string>
     <string name="button_txt">Click Me!</string>
     <string name="button_clicked_txt">Button was clicked!</string>
+    <string name="portrait_txt">Portrait orientation</string>
+    <string name="landscape_txt">Landscape orientation</string>
 </resources>
\ No newline at end of file
-- 
GitLab