Android Question Appcompat Issue? (SOLVED)

walterf25

Expert
Licensed User
Longtime User
Hi All, i have this app i'm creating for my sister, I only have two activities Main and CamActivity, if you guys can see in the Main Activity the very top part of the activity where the battery, wifi and time icons are, that portion gets the orange color that I specified in the Manifest editor.
Manifest File:
AddManifestText(
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$

CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar">
        <item name="colorPrimary">#ff751a</item>
        <item name="colorPrimaryDark">#ff751a</item>
        <item name="colorAccent">#0033CC</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="android:navigationBarColor">#ff751a</item>
        <item name="android:windowDrawsSystemBarBackgrounds">true</item>
        <item name="android:statusBarColor">@android:color/transparent</item>
    </style>)

The issue is when I open the Camera Activity (I'm using the Camex2 class by the way) that same top portion of the activity shows White instead of the orange color, i've never had this issue before, so i'm wondering if anything has changed, or am I missing something in my Manifest file?

Any ideas, thoughts?

View attachment 87260 View attachment 87261

Thanks All,
Walter
 
Last edited:

walterf25

Expert
Licensed User
Longtime User
Sorry everyone, solved the issue was this line in the manifest file
XML:
<item name="android:statusBarColor">@android:color/transparent</item>

I changed it to this:
XML:
<item name="android:statusBarColor">#ff751a</item>

Thanks,
Walter
 
Upvote 0
Top