From c140cf4bd398d5fce896686073514beb7112918e Mon Sep 17 00:00:00 2001 From: jaco Date: Sat, 11 Feb 2023 20:02:19 -0300 Subject: [PATCH 1/4] feat(main menu gui): main menu gui added --- .../metrometro/activities/MainActivity.java | 1 - app/src/main/res/layout/activity_main.xml | 83 +++++++++++-------- app/src/main/res/values-night/themes.xml | 16 ---- app/src/main/res/values/themes.xml | 1 + 4 files changed, 50 insertions(+), 51 deletions(-) delete mode 100644 app/src/main/res/values-night/themes.xml diff --git a/app/src/main/java/com/jorgecruces/metrometro/activities/MainActivity.java b/app/src/main/java/com/jorgecruces/metrometro/activities/MainActivity.java index b1c2186..b0891ae 100644 --- a/app/src/main/java/com/jorgecruces/metrometro/activities/MainActivity.java +++ b/app/src/main/java/com/jorgecruces/metrometro/activities/MainActivity.java @@ -20,7 +20,6 @@ public class MainActivity extends AppCompatActivity { protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); - AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO); } public void goNextActivity(View view) { diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index a24147e..6eee579 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -4,46 +4,61 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:background="@drawable/main_menu_background" tools:context=".activities.MainActivity"> - - -