ฉันมีปัญหาในการเปลี่ยนสีพื้นหลังและสีข้อความของปุ่มในแอป
ฉันสร้างธีมใหม่เพื่อเล่นและลองใช้ รายการของฉันมีลักษณะดังนี้:
<application
...
android:theme="@style/OrangeWhite">
<activity android:name=".MainActivity">
...
</application>
theme.xml ของฉันมีลักษณะดังนี้:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="OrangeWhite" parent="android:Theme.Light">
<item name="android:windowBackground">@color/OrangeWhite_bg_color</item>
<item name="android:textColor">@color/OrangeWhite_wh_text</item>
<item name="android:colorButtonNormal">@color/OrangeWhite_bg_btn</item>
</style>
</resources>
การเปลี่ยนสีข้อความหรือพื้นหลังของกิจกรรมก็ใช้ได้ดี ปัญหาอยู่ที่ปุ่ม จำเป็นต้องระบุทุกปุ่มเพื่อใช้ธีม OrangeWhite หรือไม่...