From 7d39ed9bcc7e4e6e0597167b09e74ccb856ba0ae Mon Sep 17 00:00:00 2001 From: Ryan Meredith Date: Mon, 31 Aug 2020 06:49:10 -0400 Subject: [PATCH 1/2] Android: res cleanup --- .../animator-ldrtl/menu_slide_out_to_end.xml | 4 +-- .../main/res/animator/button_elevation.xml | 22 -------------- .../res/animator/menu_slide_out_to_end.xml | 30 +++++++++---------- .../res/layout-port/fragment_emulation.xml | 1 - .../layout-television/activity_emulation.xml | 3 +- .../res/layout/activity_add_directory.xml | 27 ----------------- .../res/layout/list_item_settings_header.xml | 4 +-- .../app/src/main/res/layout/tv_title.xml | 4 +-- .../src/main/res/menu/menu_add_directory.xml | 11 ------- .../app/src/main/res/values/dimens.xml | 3 -- .../app/src/main/res/values/strings.xml | 6 +--- 11 files changed, 24 insertions(+), 91 deletions(-) delete mode 100644 Source/Android/app/src/main/res/animator/button_elevation.xml delete mode 100644 Source/Android/app/src/main/res/layout/activity_add_directory.xml delete mode 100644 Source/Android/app/src/main/res/menu/menu_add_directory.xml diff --git a/Source/Android/app/src/main/res/animator-ldrtl/menu_slide_out_to_end.xml b/Source/Android/app/src/main/res/animator-ldrtl/menu_slide_out_to_end.xml index eadf33156c..ede4eb37cb 100644 --- a/Source/Android/app/src/main/res/animator-ldrtl/menu_slide_out_to_end.xml +++ b/Source/Android/app/src/main/res/animator-ldrtl/menu_slide_out_to_end.xml @@ -2,7 +2,7 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/Source/Android/app/src/main/res/animator/menu_slide_out_to_end.xml b/Source/Android/app/src/main/res/animator/menu_slide_out_to_end.xml index 5c38a06fd8..d650237d6f 100644 --- a/Source/Android/app/src/main/res/animator/menu_slide_out_to_end.xml +++ b/Source/Android/app/src/main/res/animator/menu_slide_out_to_end.xml @@ -2,20 +2,20 @@ - + - + - \ No newline at end of file + diff --git a/Source/Android/app/src/main/res/layout-port/fragment_emulation.xml b/Source/Android/app/src/main/res/layout-port/fragment_emulation.xml index 4f54974a5b..64d27bdf12 100644 --- a/Source/Android/app/src/main/res/layout-port/fragment_emulation.xml +++ b/Source/Android/app/src/main/res/layout-port/fragment_emulation.xml @@ -7,7 +7,6 @@ + android:orientation="horizontal" + android:baselineAligned="false"> - - - - - - - diff --git a/Source/Android/app/src/main/res/layout/list_item_settings_header.xml b/Source/Android/app/src/main/res/layout/list_item_settings_header.xml index 1c0cd336c3..58850ca801 100644 --- a/Source/Android/app/src/main/res/layout/list_item_settings_header.xml +++ b/Source/Android/app/src/main/res/layout/list_item_settings_header.xml @@ -14,6 +14,6 @@ android:layout_marginBottom="@dimen/spacing_small" android:textColor="?android:colorAccent" android:textStyle="bold" - android:layout_gravity="left|bottom"/> + android:layout_gravity="start|bottom"/> - \ No newline at end of file + diff --git a/Source/Android/app/src/main/res/layout/tv_title.xml b/Source/Android/app/src/main/res/layout/tv_title.xml index 49dd2969ee..9980b6b6e3 100644 --- a/Source/Android/app/src/main/res/layout/tv_title.xml +++ b/Source/Android/app/src/main/res/layout/tv_title.xml @@ -12,7 +12,7 @@ android:visibility="gone" android:layout_alignTop="@+id/badge" android:layout_alignBottom="@+id/badge" - android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" android:id="@+id/title" android:gravity="center_vertical" android:layout_width="wrap_content" @@ -21,7 +21,7 @@ - - - - - - \ No newline at end of file diff --git a/Source/Android/app/src/main/res/values/dimens.xml b/Source/Android/app/src/main/res/values/dimens.xml index 0798c90a96..e0e16c895e 100644 --- a/Source/Android/app/src/main/res/values/dimens.xml +++ b/Source/Android/app/src/main/res/values/dimens.xml @@ -2,9 +2,6 @@ 16dp - 1dp - 4dp - 4dp 12dp 16dp diff --git a/Source/Android/app/src/main/res/values/strings.xml b/Source/Android/app/src/main/res/values/strings.xml index e72828590a..ba8377e099 100644 --- a/Source/Android/app/src/main/res/values/strings.xml +++ b/Source/Android/app/src/main/res/values/strings.xml @@ -302,6 +302,7 @@ Other + Add Folder to Library Config Graphics Settings GameCube Input @@ -312,11 +313,6 @@ Successfully installed this title to the NAND. Failed to install this title to the NAND. - - Add Folder to Library - Up one level - That folder is empty. - Save and Exit Settings From 05f3c4d579e9352311e90cf97b444a25cd8f4b72 Mon Sep 17 00:00:00 2001 From: Ryan Meredith Date: Mon, 31 Aug 2020 11:42:27 -0400 Subject: [PATCH 2/2] Android: Remove unused files --- .../ui/input/gamecube/ControllerFragment.java | 6 ---- .../gamecube/ControllerFragmentPresenter.java | 6 ---- .../gamecube/ControllerFragmentView.java | 6 ---- .../dolphinemu/utils/Animations.java | 29 ---------------- .../viewholders/FileViewHolder.java | 31 ----------------- .../main/res/drawable/oval_ripple_grey.xml | 8 ----- .../src/main/res/layout/list_item_file.xml | 33 ------------------- .../app/src/main/res/values/colors.xml | 4 +-- 8 files changed, 1 insertion(+), 122 deletions(-) delete mode 100644 Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragment.java delete mode 100644 Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragmentPresenter.java delete mode 100644 Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragmentView.java delete mode 100644 Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Animations.java delete mode 100644 Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/viewholders/FileViewHolder.java delete mode 100644 Source/Android/app/src/main/res/drawable/oval_ripple_grey.xml delete mode 100644 Source/Android/app/src/main/res/layout/list_item_file.xml diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragment.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragment.java deleted file mode 100644 index 346a16741d..0000000000 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragment.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.dolphinemu.dolphinemu.ui.input.gamecube; - - -public class ControllerFragment -{ -} diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragmentPresenter.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragmentPresenter.java deleted file mode 100644 index d8916ccf08..0000000000 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragmentPresenter.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.dolphinemu.dolphinemu.ui.input.gamecube; - - -public class ControllerFragmentPresenter -{ -} diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragmentView.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragmentView.java deleted file mode 100644 index 77c8b7b3a7..0000000000 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/ui/input/gamecube/ControllerFragmentView.java +++ /dev/null @@ -1,6 +0,0 @@ -package org.dolphinemu.dolphinemu.ui.input.gamecube; - - -public interface ControllerFragmentView -{ -} diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Animations.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Animations.java deleted file mode 100644 index 64df6228d5..0000000000 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/Animations.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.dolphinemu.dolphinemu.utils; - -import android.view.View; -import android.view.ViewPropertyAnimator; - -public final class Animations -{ - private Animations() - { - } - - public static ViewPropertyAnimator fadeViewIn(View view) - { - view.setVisibility(View.VISIBLE); - - return view.animate() - .withLayer() - .setDuration(100) - .alpha(1.0f); - } - - public static ViewPropertyAnimator fadeViewOut(View view) - { - return view.animate() - .withLayer() - .setDuration(300) - .alpha(0.0f); - } -} diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/viewholders/FileViewHolder.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/viewholders/FileViewHolder.java deleted file mode 100644 index af854fa763..0000000000 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/viewholders/FileViewHolder.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.dolphinemu.dolphinemu.viewholders; - -import androidx.recyclerview.widget.RecyclerView; - -import android.view.View; -import android.widget.ImageView; -import android.widget.TextView; - -import org.dolphinemu.dolphinemu.R; - -/** - * A simple class that stores references to views so that the FileAdapter doesn't need to - * keep calling findViewById(), which is expensive. - */ -public class FileViewHolder extends RecyclerView.ViewHolder -{ - public View itemView; - - public TextView textFileName; - public ImageView imageType; - - public FileViewHolder(View itemView) - { - super(itemView); - - this.itemView = itemView; - - textFileName = (TextView) itemView.findViewById(R.id.text_file_name); - imageType = (ImageView) itemView.findViewById(R.id.image_type); - } -} diff --git a/Source/Android/app/src/main/res/drawable/oval_ripple_grey.xml b/Source/Android/app/src/main/res/drawable/oval_ripple_grey.xml deleted file mode 100644 index 31f064c0ac..0000000000 --- a/Source/Android/app/src/main/res/drawable/oval_ripple_grey.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/Source/Android/app/src/main/res/layout/list_item_file.xml b/Source/Android/app/src/main/res/layout/list_item_file.xml deleted file mode 100644 index 16140c5994..0000000000 --- a/Source/Android/app/src/main/res/layout/list_item_file.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/Source/Android/app/src/main/res/values/colors.xml b/Source/Android/app/src/main/res/values/colors.xml index 33df0fc245..b62030758e 100644 --- a/Source/Android/app/src/main/res/values/colors.xml +++ b/Source/Android/app/src/main/res/values/colors.xml @@ -9,8 +9,6 @@ #2979ff #651fff - #bdbdbd - #444444 - \ No newline at end of file +