2

新しいandroid.support.v7.widget.ActionMenuView(v7、r21) を使用して、アプリケーションで分割アクション バーを模倣しています。上部のツールバーは をテーマにしてThemeOverlay.AppCompat.Dark.ActionBarいるため、テキストとオーバーフロー アイコンは白く表示されます。ただし、ActionMenuView のコンテンツは黒く表示されます。そこにテーマを適用する方法、または少なくともオプション項目のテキストを白く着色する方法はありますか?

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

<android.support.v7.widget.ActionMenuView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="?attr/actionBarSize"
    android:id="@+id/bar_split"
    android:background="?attr/colorPrimary" />
4

1 に答える 1