Change MainActivity's Toolbar popupTheme to match current theme

This commit is contained in:
Phillip Hsu 2016-09-20 17:22:25 -07:00
parent 0096459ded
commit baa2530850
3 changed files with 4 additions and 1 deletions

View File

@ -19,7 +19,7 @@
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay"
app:popupTheme="?themedPopupOverlay"
app:contentInsetStart="0dp"
app:layout_scrollFlags=""> <!-- None intentionally -->

View File

@ -15,5 +15,6 @@
</declare-styleable>
<attr name="themedIconTint" format="reference|color"/>
<attr name="themedPopupOverlay" format="reference"/>
</resources>

View File

@ -15,6 +15,7 @@
is not supported below 21. -->
<item name="themedIconTint">@color/icon_color_active_light</item>
<item name="android:textColorHint">@color/text_color_disabled_light</item>
<item name="themedPopupOverlay">@style/ThemeOverlay.AppCompat.Light</item>
</style>
<style name="AppTheme.Dark" parent="Theme.AppCompat.NoActionBar">
@ -32,6 +33,7 @@
is not supported below 21.-->
<item name="themedIconTint">@color/icon_color_active_dark</item>
<item name="android:textColorHint">@color/text_color_disabled_dark</item>
<item name="themedPopupOverlay">@style/ThemeOverlay.AppCompat.Dark</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar"/>