From 2d04ea3f1d6e6a83cdff77599348e44b502fe943 Mon Sep 17 00:00:00 2001 From: jaco Date: Sun, 5 Mar 2023 22:56:03 -0300 Subject: [PATCH] feat(banner ad): banner ad added to main menu and gameplay --- app/build.gradle | 1 + app/src/main/AndroidManifest.xml | 4 ++++ .../metrometro/activities/MainActivity.java | 21 ++++++++++++++++ .../activities/PlayGameActivity.java | 24 +++++++++++++++++++ app/src/main/res/layout/activity_main.xml | 12 ++++++++++ .../main/res/layout/activity_menu_metro.xml | 13 ++++++++++ .../res/layout/activity_metro_information.xml | 13 ++++++++++ .../main/res/layout/activity_play_game.xml | 16 +++++++++++-- 8 files changed, 102 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 4b92c1d..bbd3483 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -30,6 +30,7 @@ android { dependencies { + implementation 'com.google.android.gms:play-services-ads:21.5.0' implementation 'androidx.appcompat:appcompat:1.4.1' implementation 'com.google.android.material:material:1.5.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.3' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a547fa7..8be92c5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -10,6 +10,10 @@ android:supportsRtl="true" android:theme="@style/Theme.MetroMetro"> + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_menu_metro.xml b/app/src/main/res/layout/activity_menu_metro.xml index 91da5ce..c846295 100644 --- a/app/src/main/res/layout/activity_menu_metro.xml +++ b/app/src/main/res/layout/activity_menu_metro.xml @@ -7,6 +7,19 @@ android:background="@drawable/lines_metro_background" tools:context=".activities.MenuMetroActivity"> + + + + diff --git a/app/src/main/res/layout/activity_play_game.xml b/app/src/main/res/layout/activity_play_game.xml index 9546880..ff06c8e 100644 --- a/app/src/main/res/layout/activity_play_game.xml +++ b/app/src/main/res/layout/activity_play_game.xml @@ -8,13 +8,25 @@ android:background="@drawable/lines_metro_background" tools:context=".activities.PlayGameActivity"> + +