Adding some highlighting of drawer items

This commit is contained in:
pachecosf 2019-01-16 18:26:42 -08:00
parent 1c9b4be17a
commit 5d3e3687f9
9 changed files with 36 additions and 1 deletions

View File

@ -5,7 +5,8 @@
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="@dimen/listitem_iconwithtext_height"
tools:background="@android:color/darker_gray">
tools:background="@android:color/darker_gray"
android:background= "?attr/nav_drawer_list_selector">
<ImageView
android:id="@+id/imgvCover"

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/highlight_dark"/>
</shape>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/highlight_light"/>
</shape>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/highlight_trueblack"/>
</shape>

View File

@ -0,0 +1,4 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_activated="true" android:drawable="@drawable/activated_color_dark" />
<item android:drawable="@android:color/transparent" />
</selector>

View File

@ -0,0 +1,4 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_activated="true" android:drawable="@drawable/activated_color_light" />
<item android:drawable="@android:color/transparent" />
</selector>

View File

@ -0,0 +1,4 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_activated="true" android:drawable="@drawable/activated_color_trueblack" />
<item android:drawable="@android:color/transparent" />
</selector>

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr name="nav_drawer_list_selector" format="reference"/>
<attr name="action_bar_icon_color" format="reference"/>
<attr name="action_about" format="reference"/>
<attr name="action_search" format="reference"/>

View File

@ -94,6 +94,7 @@
<item name="buttonStyle">@style/Widget.AntennaPod.Button</item>
<item name="progressBarTheme">@style/ProgressBarDark</item>
<item name="alertDialogTheme">@style/AntennaPod.Dialog.Dark</item>
<item type="attr" name="nav_drawer_list_selector">@drawable/drawer_list_selector_dark</item>
<item type="attr" name="action_bar_icon_color">@color/white</item>
<item type="attr" name="storage">@drawable/ic_sd_white_24dp</item>
<item type="attr" name="ic_swap">@drawable/ic_swap_vertical_white_24dp</item>
@ -197,6 +198,7 @@
<item name="colorAccent">@color/holo_blue_light</item>
<item name="buttonStyle">@style/Widget.AntennaPod.Button</item>
<item name="alertDialogTheme">@style/AntennaPod.Dialog.Light</item>
<item type="attr" name="nav_drawer_list_selector">@drawable/drawer_list_selector_light</item>
<item type="attr" name="storage">@drawable/ic_sd_grey600_24dp</item>
<item type="attr" name="ic_swap">@drawable/ic_swap_vertical_grey600_24dp</item>
<item type="attr" name="statistics">@drawable/ic_poll_box_grey600_24dp</item>
@ -270,6 +272,8 @@
</style>
<style name="Theme.Base.AntennaPod.Dark.NoTitle" parent="Theme.AppCompat.NoActionBar">
<item name="android:activatedBackgroundIndicator">@drawable/drawer_list_selector_trueblack</item>
<item name="windowActionBar">false</item>
<item name="windowActionModeOverlay">true</item>
<item name="progressBarTheme">@style/ProgressBarDark</item>
@ -279,6 +283,7 @@
<item name="colorControlNormal">@color/white</item>
<item name="buttonStyle">@style/Widget.AntennaPod.Button</item>
<item name="alertDialogTheme">@style/AntennaPod.Dialog.Dark</item>
<item type="attr" name="nav_drawer_list_selector">@drawable/drawer_list_selector_dark</item>
<item type="attr" name="storage">@drawable/ic_sd_white_24dp</item>
<item type="attr" name="ic_swap">@drawable/ic_swap_vertical_white_24dp</item>
<item type="attr" name="statistics">@drawable/ic_poll_box_white_24dp</item>
@ -372,12 +377,16 @@
<style name="Theme.AntennaPod.Dark.Splash" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowBackground">@drawable/bg_splash</item>
<item name="android:activatedBackgroundIndicator">@drawable/drawer_list_selector_trueblack</item>
<item name="colorPrimary">@color/ic_launcher_background</item>
<item name="colorPrimaryDark">@color/ic_launcher_background</item>
</style>
<style name="Theme.AntennaPod.VideoPlayer" parent="@style/Theme.AntennaPod.Dark">
<item name="windowActionBarOverlay">true</item>
<item name="android:activatedBackgroundIndicator">@drawable/drawer_list_selector_trueblack</item>
</style>
<style name="AntennaPod.TextView.Heading" parent="@android:style/TextAppearance.Medium">