Where do I find the styles.xml file?

11,490

Solution 1

No need styles.xml file in the new Android Studio. Goto your project file view: Res>Values>Themes folder.

Open themes.xml file change actionbar.

android studio live example

Solution 2

Change project structure to Android.

Follow below image

enter image description here

Now getting structure like below Image:

enter image description here

Here is style.xml file present under res->values

If not getting style.xml file, then Create new file res->values->New->Value Resource file

enter image description here

I hope this helps you

Solution 3

You can find it in your resource directory

res/values/styles.xml

Solution 4

  1. Right click on res - new - package - write the name of package as values - in the drop down of folder type, select values - ok.
  2. The values folder is created!
  3. Right click on values package - new - Android Resource Xml file - write name as styles in the name section - Ok.
Share:
11,490
Kenya JJ
Author by

Kenya JJ

Updated on August 15, 2022

Comments

  • Kenya JJ
    Kenya JJ over 1 year

    I have a very simple application that runs an html file. I really want to change the color of the status bar, because the standard top and bottom in black is horrible for the color palette of the page shown. I have no idea about Android and I can't start learning now, but I tried to follow the answers, as in this question here at Stack Overflow: How to change the status bar color in android. However, I can't even find the styles.xml file that is indicated to put the parameters inside. I tried to create the "value" folder with the styles.xml file inside, but it only corrupted the app, as I imagined it would happen.

    This is how the file tree of my app (generated by the Website to APK Builder) is seen:

    tree of files

    What do I do to accomplish this? Please help me!

    Note: I tried the edits through Android Studio.

    For more details, here's the .apk: Google Drive