0
With these latest updates of Android Studio I’m surprised in the Styles.xml file of the project that Theme is in red, as can be seen in the image below:
CODE
<!-- 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>
<style name="MyButton" parent="AppTheme">
<item name="colorControlHighlight">@color/colorPrimary</item>
<item name="colorButtonNormal">@color/colorPrimaryDark</item>
<item name="android:textColor">@drawable/button_disabled</item>
</style>
<style name="AppTheme.Fullscreen" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowFullscreen">true</item>
</style>
Even when I’m a new project in Android Studio the style.xml file looks like this.
Does anyone know if there is a bug or how to fix it?
The version of Android Studio I have here is 3.1.1.
I recommend that read this
– user28595
I believe that in the case on screen does not apply to the problem caused by post of an image just to show the possible error in the code. The purpose of the image is to show the marking in the red color that Android Studio is doing, simply this. Now, if the issue of not posting the code irritates a lot of people, no problem, I put the code!
– Henqsan
Look at this reply
– ramaral
@ramaral unfortunately did not work. I erased the folders . Gradle and . project idea and rebuilt the project and the problem was not solved. Even though I generate a new project from scratch in Android Studio the style.xml file stays the way it appears in the image I posted. Therefore, I believe that the question is external to the project.
– Henqsan
I will correct my previous information here. At the time I deleted the folders . Gradle and . idea and rebuilt the application and did the necessary synchronizations there was no fix in the style.xml file. But later when rewiring the computer and opening the project again in Android Studio the problem was solved. So, to those who have the same problem as mine, worth the tip given in the link Ramaral.
– Henqsan