diff --git a/app/src/main/java/code/name/monkey/retromusic/views/OptionMenuItemView.java b/app/src/main/java/code/name/monkey/retromusic/views/OptionMenuItemView.java index 4476127e..1d6f37c1 100644 --- a/app/src/main/java/code/name/monkey/retromusic/views/OptionMenuItemView.java +++ b/app/src/main/java/code/name/monkey/retromusic/views/OptionMenuItemView.java @@ -55,15 +55,15 @@ public class OptionMenuItemView extends FrameLayout { super(context, attrs, defStyleAttr, defStyleRes); int accentColor = ThemeStore.Companion.accentColor(context); - setBackground(ContextCompat.getDrawable(context, R.drawable.menu_item_background)); + int colorWithAlpha = ColorUtil.INSTANCE.adjustAlpha(accentColor, 0.22f); + + setBackground(ContextCompat.getDrawable(context, R.drawable.option_menu_background)); setClickable(true); setFocusable(true); inflate(context, R.layout.item_option_menu, this); - setBackgroundTintList(ColorStateList.valueOf(ColorUtil.INSTANCE.adjustAlpha(accentColor, 0.22f))); - textView = findViewById(R.id.title); iconImageView = findViewById(R.id.icon); @@ -83,8 +83,11 @@ public class OptionMenuItemView extends FrameLayout { super.setSelected(selected); if (selected) { int accentColor = ThemeStore.Companion.accentColor(getContext()); + int colorWithAlpha = ColorUtil.INSTANCE.adjustAlpha(accentColor, 0.22f); textView.setTextColor(accentColor); iconImageView.setImageTintList(ColorStateList.valueOf(accentColor)); + setBackgroundTintList(ColorStateList.valueOf(colorWithAlpha)); } } -} \ No newline at end of file +} + diff --git a/app/src/main/res/drawable-xxhdpi/bottom_navigation_item_background_ripple.xml b/app/src/main/res/drawable/bottom_navigation_item_background_ripple.xml similarity index 100% rename from app/src/main/res/drawable-xxhdpi/bottom_navigation_item_background_ripple.xml rename to app/src/main/res/drawable/bottom_navigation_item_background_ripple.xml diff --git a/app/src/main/res/drawable/menu_item_background.xml b/app/src/main/res/drawable/menu_item_background.xml deleted file mode 100644 index eba09688..00000000 --- a/app/src/main/res/drawable/menu_item_background.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/option_menu_background.xml b/app/src/main/res/drawable/option_menu_background.xml new file mode 100644 index 00000000..b5f6a848 --- /dev/null +++ b/app/src/main/res/drawable/option_menu_background.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_main_options.xml b/app/src/main/res/layout/fragment_main_options.xml index 18bbd6e9..1bacac0e 100644 --- a/app/src/main/res/layout/fragment_main_options.xml +++ b/app/src/main/res/layout/fragment_main_options.xml @@ -5,14 +5,15 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingStart="0dp" - android:paddingEnd="16dp" + android:paddingStart="8dp" + android:paddingEnd="8dp" tools:ignore="MissingPrefix"> @@ -20,6 +21,7 @@ android:id="@+id/actionFolders" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_margin="2dp" app:optionIcon="@drawable/ic_folder_white_24dp" app:optionTitle="@string/folders" /> @@ -27,6 +29,7 @@ android:id="@+id/actionSettings" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_margin="2dp" app:optionIcon="@drawable/ic_settings_white_24dp" app:optionTitle="@string/action_settings" /> @@ -34,6 +37,7 @@ android:id="@+id/actionRate" android:layout_width="match_parent" android:layout_height="wrap_content" + android:layout_margin="2dp" app:optionIcon="@drawable/ic_star_white_24dp" app:optionTitle="@string/rate_app" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_volume.xml b/app/src/main/res/layout/fragment_volume.xml index 4f56c6b3..4e0cd2c0 100755 --- a/app/src/main/res/layout/fragment_volume.xml +++ b/app/src/main/res/layout/fragment_volume.xml @@ -7,6 +7,8 @@ android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="horizontal" + android:paddingStart="8dp" + android:paddingEnd="8dp" android:paddingBottom="12dp"> @@ -39,9 +40,7 @@ android:layout_height="wrap_content" android:layout_weight="0" android:background="?roundSelector" - android:paddingStart="12dp" - android:paddingEnd="12dp" - android:paddingBottom="12dp" + android:padding="8dp" app:srcCompat="@drawable/ic_volume_up_white_24dp" app:tint="?colorOnBackground" /> \ No newline at end of file diff --git a/app/src/main/res/layout/item_option_menu.xml b/app/src/main/res/layout/item_option_menu.xml index ddd53906..66a6cbdc 100644 --- a/app/src/main/res/layout/item_option_menu.xml +++ b/app/src/main/res/layout/item_option_menu.xml @@ -19,8 +19,8 @@ android:layout_height="wrap_content" android:gravity="center_vertical" android:orientation="horizontal" - android:paddingStart="0dp" - android:paddingEnd="16dp" + android:paddingStart="8dp" + android:paddingEnd="8dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent">