6

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

Kenya JJ
  • 83
  • 1
  • 1
  • 5

4 Answers4

6

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

Android Geek
  • 8,598
  • 2
  • 19
  • 34
  • heey, thanks for answering! the "Android" option isn't shown :/ look: https://drive.google.com/open?id=1tGfK3TmGGSnDwiXgOwY2vb0pXOChxxZC – Kenya JJ Apr 30 '20 at 15:00
  • I think your Gradle project is not properly sync. Please make sure your gradle project sync properly – Android Geek May 01 '20 at 04:35
5

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

Sajjad Hosen
  • 51
  • 1
  • 5
1

You can find it in your resource directory

res/values/styles.xml

1
  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.
Prajwal Waingankar
  • 2,124
  • 2
  • 10
  • 18
  • doesn't show the option to create a package, look https://drive.google.com/open?id=1EKBtelYa0IxWT61ZgDC6Qq5ESTm5by46 – Kenya JJ Apr 29 '20 at 23:16
  • When u right click on res and then new...what option u get? Can u see package? – Prajwal Waingankar Apr 30 '20 at 05:02
  • I see the follow options: File, Stratch File, Directory, C++ Class, C/C+ Source File, C/C++ Header File, Kotlin Script, Kotlin Worksheet, Gradle Kotlin DSL Build Script, Gradle Kotlin DSL Settings, Edit File Templates..., EditorConfig File, Resource Bundle. I cant see package :/ – Kenya JJ Apr 30 '20 at 15:04