Android toolbar for popups and themes

Often I see this toolbar declaration in layout files:

<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" app:popupTheme="@style/ThemeOverlay.AppCompat.Light"> </android.support.v7.widget.Toolbar> 

Why are there two attributes associated with the theme: theme and popupTheme?

What are the goals of each of them?

+46
android android-support-library appcompat android-toolbar
Dec 03 '15 at 9:09
source share
1 answer
  • popupTheme

    Specifies the theme used when inflating pop-up menus. By default, the same theme is used as the Toolbar itself.

  • topic

    This is just a Toolbar theme.

+61
Dec 03 '15 at 9:17
source share



All Articles