关于android 主题的配置,一直都在看别人写的主题配置文件xml 都不知道这些属性哪里来的
今天找到了
在工程的values 下建立一个style.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Transparent">
<item name="android:windowBackground">@color/transparent_background</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowAnimationStyle">@+android:style/Animation.Translucent</item>
<item name="android:windowFullscreen" >true</item>
</style>
</resources>
这些item name 属性哪里来的呢 先加上,所有设置这个属性就是:
R.styleable 这里面以Theme_的都是在文档里有,点进入有说明的
Small ProgressBar in title style. This is a small circular progress bar that will be placed in title bars.
Must be a reference to another resource, in the form "@[+][package
:]type
:name
"
or to a theme attribute in the form "?[package
:][type
:]name
".
This corresponds to the global attribute resource symbol progressBarStyleSmallTitle
.
所以就是
<item name="android:progressBarStyleSmallTitle ">@[+][package:]type:name</item>
本文介绍如何在Android项目中创建和使用透明主题。通过在values目录下建立style.xml文件,并定义带有特定属性的样式,可以实现应用程序窗口背景透明、全屏显示等功能。
1525

被折叠的 条评论
为什么被折叠?



