简体   繁体   English

在 android 工作室中找不到 style.xml

[英]cant find style.xml in android studio

So we all know that i gotta go res->values->style.xml right?所以我们都知道我必须 go res->values->style.xml 对吗? i do that and I cant find the style.xml file... all I could find is the color.xml and the strings.xml... obviously there is also the themes folder but if I get to open it, it still doesn't contain style.xml... here is a screen shot of my project.我这样做了,但我找不到 style.xml 文件...我只能找到颜色。xml 和字符串。xml 如果可以打开它,但它仍然没有主题文件夹... '不包含 style.xml... 这是我项目的屏幕截图。 here is the project with the (android) view and with both the res and themes folder dropped down(clickme)这是带有(android)视图的项目,并且 res 和主题文件夹都被下拉(clickme)

if you could help that would be really good cuz I'm tryna get my actionbar removed and all I see is that I have to find the styles.xml file to get to remove the action bar...如果您能提供帮助,那将非常好,因为我正在尝试删除操作栏,而我所看到的只是我必须找到 styles.xml 文件才能删除操作栏...

*also the project is a java project in android studio and it is an Empty activity ... ty *该项目也是 android 工作室中的 java 项目,它是一个空活动... ty

A style is a collection of attributes that specify the appearance for a single View.样式是指定单个视图外观的属性集合。 A style can specify attributes such as font color, font size, background color, and much more.样式可以指定诸如字体颜色、字体大小、背景颜色等属性。

A theme is a collection of attributes that's applied to an entire app, activity, or view hierarchy—not just an individual view.主题是应用于整个应用程序、活动或视图层次结构的属性集合,而不仅仅是单个视图。 When you apply a theme, every view in the app or activity applies each of the theme's attributes that it supports.应用主题时,应用程序或活动中的每个视图都会应用它支持的每个主题属性。 Themes can also apply styles to non-view elements, such as the status bar and window background.主题也可以将 styles 应用于非视图元素,例如状态栏和 window 背景。 documentation 文件

You can create style.xml file manually if you need it.如果需要,您可以手动创建 style.xml 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM