From 700225f8c8898406fa8cc655891f15b0fe3f6d3d Mon Sep 17 00:00:00 2001 From: Eder Bastos Date: Fri, 8 May 2015 19:57:44 -0400 Subject: [PATCH] Add floating action button to GameGridActivity. --- .../{oval_ripple.xml => oval_ripple_gc.xml} | 3 +- .../src/main/res/drawable/oval_ripple_wii.xml | 8 +++++ .../main/res/layout/activity_game_grid.xml | 31 +++++++++++++++---- .../main/res/layout/dialog_game_details.xml | 2 +- .../app/src/main/res/values/colors.xml | 10 +++--- .../app/src/main/res/values/styles.xml | 4 +-- 6 files changed, 43 insertions(+), 15 deletions(-) rename Source/Android/app/src/main/res/drawable/{oval_ripple.xml => oval_ripple_gc.xml} (66%) create mode 100644 Source/Android/app/src/main/res/drawable/oval_ripple_wii.xml diff --git a/Source/Android/app/src/main/res/drawable/oval_ripple.xml b/Source/Android/app/src/main/res/drawable/oval_ripple_gc.xml similarity index 66% rename from Source/Android/app/src/main/res/drawable/oval_ripple.xml rename to Source/Android/app/src/main/res/drawable/oval_ripple_gc.xml index 554d5f834a..0477ba84fe 100644 --- a/Source/Android/app/src/main/res/drawable/oval_ripple.xml +++ b/Source/Android/app/src/main/res/drawable/oval_ripple_gc.xml @@ -1,9 +1,8 @@ - - + \ No newline at end of file diff --git a/Source/Android/app/src/main/res/drawable/oval_ripple_wii.xml b/Source/Android/app/src/main/res/drawable/oval_ripple_wii.xml new file mode 100644 index 0000000000..35c767805c --- /dev/null +++ b/Source/Android/app/src/main/res/drawable/oval_ripple_wii.xml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/Source/Android/app/src/main/res/layout/activity_game_grid.xml b/Source/Android/app/src/main/res/layout/activity_game_grid.xml index f026322f3d..e87f859787 100644 --- a/Source/Android/app/src/main/res/layout/activity_game_grid.xml +++ b/Source/Android/app/src/main/res/layout/activity_game_grid.xml @@ -13,12 +13,31 @@ android:minHeight="?android:attr/actionBarSize" android:theme="@android:style/ThemeOverlay.Material.Dark.ActionBar"/> - + android:layout_height="match_parent"> + + + + + \ No newline at end of file diff --git a/Source/Android/app/src/main/res/layout/dialog_game_details.xml b/Source/Android/app/src/main/res/layout/dialog_game_details.xml index a135c99c86..b431991baf 100644 --- a/Source/Android/app/src/main/res/layout/dialog_game_details.xml +++ b/Source/Android/app/src/main/res/layout/dialog_game_details.xml @@ -124,7 +124,7 @@ android:layout_alignBottom="@+id/image_game_screen" android:layout_alignEnd="@+id/text_game_title" android:layout_marginBottom="-28dp" - android:background="@drawable/oval_ripple" + android:background="@drawable/oval_ripple_wii" android:src="@drawable/ic_play" android:stateListAnimator="@anim/button_elevation" android:elevation="4dp"/> diff --git a/Source/Android/app/src/main/res/values/colors.xml b/Source/Android/app/src/main/res/values/colors.xml index 608cc9afd7..a4174647c7 100644 --- a/Source/Android/app/src/main/res/values/colors.xml +++ b/Source/Android/app/src/main/res/values/colors.xml @@ -1,8 +1,10 @@ - #5bc0de - #428bca + #2196f3 + #1976d2 + #651fff - #663399 - #311b92 + #673ab7 + #512da8 + #2979ff \ No newline at end of file diff --git a/Source/Android/app/src/main/res/values/styles.xml b/Source/Android/app/src/main/res/values/styles.xml index 40d406b20f..a0bfbb1865 100644 --- a/Source/Android/app/src/main/res/values/styles.xml +++ b/Source/Android/app/src/main/res/values/styles.xml @@ -8,13 +8,13 @@ @color/dolphin_wii_dark - @color/dolphin_gamecube + @color/dolphin_wii_accent