Android app with colorful background on buttons and text

Asked

Viewed 185 times

1

I’ve been playing with an android app, and I don’t know how it started to give problems...it didn’t start at all, as soon as the message appeared saying that the app crashed and if it wanted to restart it. After some effort to understand what was going on, I discovered that something happened to the subject, so I switched the theme in the manifest, the result was a red background in almost the entire app, how can I fix it? What properties do I have to change? See a screenshot of the app:

inserir a descrição da imagem aqui

Items that are in red have property background in red.. I know I wasn’t showing red before and I know I haven’t been changing the background color, I’m confused.

Here is the xml of style what use:

 <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
        <item name="android:actionBarStyle">@style/ActionBar</item>
        <item name="colorPrimaryDark">@color/primary_dark</item>
        <item name="colorAccent">@color/burning_gold</item>
    </style>
<style name="ActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="android:displayOptions">showHome|useLogo</item>
    <item name="displayOptions">showHome|useLogo</item>
    <item name="android:background">@color/ccilc_red</item>
</style>
  • can you edit and put the layout of this print screen? , just so I can confirm what it is..

  • 1

    I figured out the problem, it was this <item name="colorPrimaryDark">@color/primary_dark</item>, discovered using older versions of the same app and seeing the differences that existed in XML.

  • beauty then, ...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.