From ce29c0b8c4868877976503b02665e5e0f7eb4cbc Mon Sep 17 00:00:00 2001 From: Kamila Babayeva Date: Fri, 15 Apr 2022 17:22:38 +0200 Subject: [PATCH 01/28] SearchUsers: add activity to search for users --- app/src/main/AndroidManifest.xml | 3 +++ app/src/main/java/ch/sdp/vibester/SearchUsers.kt | 11 +++++++++++ app/src/main/res/layout/activity_search_users.xml | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 app/src/main/java/ch/sdp/vibester/SearchUsers.kt create mode 100644 app/src/main/res/layout/activity_search_users.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4a944fe55..16d1a1e82 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -19,6 +19,9 @@ android:supportsRtl="true" android:theme="@style/Theme.MyApplication" android:usesCleartextTraffic="true"> + diff --git a/app/src/main/java/ch/sdp/vibester/SearchUsers.kt b/app/src/main/java/ch/sdp/vibester/SearchUsers.kt new file mode 100644 index 000000000..fa30a0bfd --- /dev/null +++ b/app/src/main/java/ch/sdp/vibester/SearchUsers.kt @@ -0,0 +1,11 @@ +package ch.sdp.vibester + +import androidx.appcompat.app.AppCompatActivity +import android.os.Bundle + +class SearchUsers : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_search_users) + } +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_search_users.xml b/app/src/main/res/layout/activity_search_users.xml new file mode 100644 index 000000000..67f3b8d05 --- /dev/null +++ b/app/src/main/res/layout/activity_search_users.xml @@ -0,0 +1,7 @@ + + \ No newline at end of file From d67cf79268c91880222268609f21c8310e3b7e7c Mon Sep 17 00:00:00 2001 From: Kamila Babayeva Date: Sat, 16 Apr 2022 18:55:08 +0200 Subject: [PATCH 02/28] remove previously wrong added files --- app/src/main/java/ch/sdp/vibester/SearchUsers.kt | 11 ----------- app/src/main/res/layout/activity_search_users.xml | 7 ------- 2 files changed, 18 deletions(-) delete mode 100644 app/src/main/java/ch/sdp/vibester/SearchUsers.kt delete mode 100644 app/src/main/res/layout/activity_search_users.xml diff --git a/app/src/main/java/ch/sdp/vibester/SearchUsers.kt b/app/src/main/java/ch/sdp/vibester/SearchUsers.kt deleted file mode 100644 index fa30a0bfd..000000000 --- a/app/src/main/java/ch/sdp/vibester/SearchUsers.kt +++ /dev/null @@ -1,11 +0,0 @@ -package ch.sdp.vibester - -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle - -class SearchUsers : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_search_users) - } -} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_search_users.xml b/app/src/main/res/layout/activity_search_users.xml deleted file mode 100644 index 67f3b8d05..000000000 --- a/app/src/main/res/layout/activity_search_users.xml +++ /dev/null @@ -1,7 +0,0 @@ - - \ No newline at end of file From 8e2cf4df090018a643962ff56c58902441f4e871 Mon Sep 17 00:00:00 2001 From: Kamila Babayeva Date: Sat, 16 Apr 2022 18:55:29 +0200 Subject: [PATCH 03/28] AndroidManifest.xml: add new activity to search users --- app/src/main/AndroidManifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 16d1a1e82..f30ee09bf 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -20,7 +20,7 @@ android:theme="@style/Theme.MyApplication" android:usesCleartextTraffic="true"> Date: Sat, 16 Apr 2022 18:56:30 +0200 Subject: [PATCH 04/28] WelcomeActivity: add new button to search users --- .../ch/sdp/vibester/activity/WelcomeActivity.kt | 3 +++ app/src/main/res/layout/activity_welcome_screen.xml | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/app/src/main/java/ch/sdp/vibester/activity/WelcomeActivity.kt b/app/src/main/java/ch/sdp/vibester/activity/WelcomeActivity.kt index 34c5f6b47..5de6065e4 100644 --- a/app/src/main/java/ch/sdp/vibester/activity/WelcomeActivity.kt +++ b/app/src/main/java/ch/sdp/vibester/activity/WelcomeActivity.kt @@ -65,4 +65,7 @@ class WelcomeActivity : AppCompatActivity() { /*fun switchToLogin(view: View) { //FILLER INTENT sendDirectIntent(GameSetupScreen::class.java) }*/ + fun switchToSearch(view: View) { + sendDirectIntent(SearchUserActivity::class.java) + } } \ No newline at end of file diff --git a/app/src/main/res/layout/activity_welcome_screen.xml b/app/src/main/res/layout/activity_welcome_screen.xml index 5e418582e..3bca38e03 100644 --- a/app/src/main/res/layout/activity_welcome_screen.xml +++ b/app/src/main/res/layout/activity_welcome_screen.xml @@ -112,6 +112,19 @@ android:translationZ="10dp" app:icon="@android:drawable/stat_sys_download" /> +