its me again, I have another issue with setting the theme in my app. Its all good on the preview, it shows the theme itself in a good way, but when I see it in the app itself, its hiding the action bar but the status bar is colored in the way i wanted. This is what I have in AndroidManifest :
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".activity.SplashScreen"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".activity.StartScreen" />
<activity android:name=".activity.HomeActivity" android:label="@string/title_activity_home" />
<activity android:name=".activity.StoreActivity"></activity>
</application>
I've tried removing the theme="@style/AppTheme", that results in having the actionbar back but the colors cannot be changed for some reason.
This is the styles.xml :
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire