Android Studio上的黑色按钮动作

问题描述

我在android studio上将按钮颜色更改为黑色,如下所示: 在colors.xml中:

<color name="colorBlack">#000000</color>

在styles.xml中:

 <style name="AppTheme.Button" parent="Base.Widget.AppCompat.Button">
        <item name="colorButtonNormal">@color/colorBlack</item>
    </style>

在layout_frag.xml中:

 <Button
   android:id="@+id/button"
   android:theme="@style/AppTheme.Button"
   android:layout_width="match_parent"
   android:layout_height="75dp"
   android:text="@string/hello_first_fragment"
   android:textColor="@color/design_default_color_background" />

我的黑色按钮正常工作,尽管按下按钮时的色调背景色操作不再起作用,因为该按钮为超级深色,而色调通常为深灰色。 ![Button2色调为灰色的onClick] [1] 我想知道单击按钮时在哪里可以更改色调动作?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)