From 26c6bbb5b37be13f4e17b8dfb744643ff0551bca Mon Sep 17 00:00:00 2001 From: jiabaow Date: Mon, 21 Mar 2022 13:31:14 +0100 Subject: [PATCH 1/8] implement LyricsBelongGame.kt --- app/src/main/AndroidManifest.xml | 4 + .../main/java/ch/sdp/vibester/MainActivity.kt | 8 +- .../sdp/vibester/api/LyricsOVHApiInterface.kt | 2 +- .../ch/sdp/vibester/games/LyricsBelongGame.kt | 87 +++++++++++++++++++ app/src/main/res/drawable/ic_mic.xml | 10 +++ .../layout/activity_lyrics_belong_game.xml | 52 +++++++++++ 6 files changed, 159 insertions(+), 4 deletions(-) create mode 100644 app/src/main/java/ch/sdp/vibester/games/LyricsBelongGame.kt create mode 100644 app/src/main/res/drawable/ic_mic.xml create mode 100644 app/src/main/res/layout/activity_lyrics_belong_game.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 44d2adb97..38e67ced9 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -5,6 +5,7 @@ + + diff --git a/app/src/main/java/ch/sdp/vibester/MainActivity.kt b/app/src/main/java/ch/sdp/vibester/MainActivity.kt index d992a5a69..0e4c8ccf3 100644 --- a/app/src/main/java/ch/sdp/vibester/MainActivity.kt +++ b/app/src/main/java/ch/sdp/vibester/MainActivity.kt @@ -6,6 +6,7 @@ import android.view.View import android.widget.Button import android.widget.EditText import androidx.appcompat.app.AppCompatActivity +import ch.sdp.vibester.games.LyricsBelongGame import ch.sdp.vibester.games.TypingGame import ch.sdp.vibester.profile.ProfileDataProvider import ch.sdp.vibester.scoreboard.ScoreBoardActivity @@ -26,16 +27,17 @@ class MainActivity : AppCompatActivity() { } val btnLyric = findViewById