Android 颜色按钮正常没有效果?

Android 颜色按钮正常没有效果?,android,android-appcompat,android-6.0-marshmallow,Android,Android Appcompat,Android 6.0 Marshmallow,我正在尝试在我的按钮上应用统一的样式 这是我的v21/styles.xml <style name="DefaultButton" parent="Widget.AppCompat.Button.Colored"> <item name="android:colorButtonNormal">#f00</item> <item name="android:textColor">@color/colorTextSecondary<

我正在尝试在我的按钮上应用统一的样式

这是我的v21/styles.xml

<style name="DefaultButton" parent="Widget.AppCompat.Button.Colored">
    <item name="android:colorButtonNormal">#f00</item>
    <item name="android:textColor">@color/colorTextSecondary</item>
</style>

#f00
@颜色/颜色文本辅助
我把这个用在我的按钮上

<Button
                android:id="@+id/submit_btn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginTop="@dimen/unit_large"
                style="@style/DefaultButton"
                android:text="Lemme In!" />
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

    <item name="android:buttonStyle">@style/DefaultButton</item>
</style>

这里没什么好玩的。但是我的按钮的颜色没有改变。材料支持包有什么变化吗?我正在使用“25.3.1”

实际上,所有这些都是我必须做的更大努力的一部分,我必须这样更改应用程序的默认按钮样式

<Button
                android:id="@+id/submit_btn"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginTop="@dimen/unit_large"
                style="@style/DefaultButton"
                android:text="Lemme In!" />
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

    <item name="android:buttonStyle">@style/DefaultButton</item>
</style>

@样式/默认按钮
然后,我将删除所有按钮上的各个样式属性

将此样式=“@style/DefaultButton”更改为
android:theme=“@style/DefaultButton”

实际上,我正在尝试在AppTheme中应用应用程序范围的样式,不希望每个视图单独应用属性。请查看我的编辑。在主题中使用buttonStyle而不是android:buttonStyle,我们将在按钮中使用android:theme。