From f995df3564e8f8e34011cc304acbeff20fde01bc Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Sat, 4 Mar 2017 23:15:09 -0600 Subject: [PATCH] Moved game to fragment for easier tablet layout management. Fixed redundant string formatting on game over text. Added menu with reset game option --- .idea/gradle.xml | 2 +- .idea/modules.xml | 1 + app/build.gradle | 4 +- .../wbrawner/numberguess/GameFragment.java | 122 ++++++++++++++++++ .../wbrawner/numberguess/MainActivity.java | 98 +++----------- app/src/main/res/layout/activity_main.xml | 61 +-------- app/src/main/res/layout/fragment_game.xml | 56 ++++++++ app/src/main/res/menu/fragment_game.xml | 6 + app/src/main/res/values-es/strings.xml | 1 + app/src/main/res/values/strings.xml | 4 + 10 files changed, 217 insertions(+), 138 deletions(-) create mode 100644 app/src/main/java/com/wbrawner/numberguess/GameFragment.java create mode 100644 app/src/main/res/layout/fragment_game.xml create mode 100644 app/src/main/res/menu/fragment_game.xml diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 0e23f8e..fe72da5 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -5,7 +5,7 @@