Android 按钮主题在DialogFragment中不起作用

Android 按钮主题在DialogFragment中不起作用,android,android-layout,android-theme,Android,Android Layout,Android Theme,这是我在布局中看到的 <android.support.v7.widget.AppCompatButton android:id="@+id/positive_btn" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="50" android:tex

这是我在布局中看到的

<android.support.v7.widget.AppCompatButton
            android:id="@+id/positive_btn"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="50"
            android:text="@string/submit_btn_text"
            android:theme="@style/PrimaryRoundedButton"
            tools:style="@style/PrimaryRoundedButton"/>

这是PrimaryRoundedButton的风格

<style name="PrimaryRoundedButton" parent="Widget.AppCompat.Button.Colored">
    <item name="android:colorButtonNormal">@color/primary_button_color</item>
    <item name="colorButtonNormal">@color/primary_button_color</item>
    <item name="colorControlHighlight">@color/white</item>
</style>

@颜色/主按钮颜色
@颜色/主按钮颜色
@颜色/白色

安卓:主题不起作用,风格可行,但涟漪是黄色的,本来应该是白色的。相同的主题在普通片段中工作,但不是dialogFragment。

好的,所以我将BaseDialogFragment中的样式设置为

setStyle(STYLE_NO_FRAME, android.R.style.Theme_Light_NoTitleBar);
我把它改成了

setStyle(STYLE_NO_FRAME, R.style.FullDialog);
FullDialog在哪里

<style name="FullDialog" parent="Theme.AppCompat.Light">
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowIsFloating">false</item>
</style>

真的
真的
假的

因此,现在我有了一个带有适当主题按钮的全屏对话框。

请参阅本文并让我们知道@SaumikBhattacharya我没有使用正/负按钮,但有我自己的布局,无论如何谢谢