关于android theme
16lz
2021-01-23
关于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中Margin和Padding属性知识总结
- 一张图看遍LinearLayout的所有特有属性
- GridView属性
- android -------- ConstraintLayout 约束属性(二)