Galera como mudo os temas do app? nao to consequindo, to usando o android 2024, e a api 32
eu so consigio trocar a cor da colorPrimary.
<resources xmlns:tools="http://schemas.android.com/tools">
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize as cores do tema -->
<item name="colorPrimary">@color/azul</item>
<item name="colorPrimaryDark">@color/black</item>
<item name="colorPrimaryVariant">@color/laranja</item>
<item name="colorAccent">@color/verde</item>
<!-- Customize a cor da ActionBar -->
<item name="android:actionBarStyle">@style/ActionBarStyle</item>
<!-- Cor do texto da ActionBar -->
<item name="android:textColorPrimary">#FFFFFF</item>
</style>
<!-- Estilo personalizado da ActionBar -->
<style name="ActionBarStyle" parent="Widget.AppCompat.ActionBar">
</style>
</resources>
Manifest…
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>