关于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>

更多相关文章

  1. Android中Margin和Padding属性知识总结
  2. 一张图看遍LinearLayout的所有特有属性
  3. GridView属性
  4. android -------- ConstraintLayout 约束属性(二)

随机推荐

  1. Gradle: The New Android(安卓)Build Sys
  2. android:file
  3. Android如何引用其他工程
  4. 【Mark】Android(安卓)Basic_Activity Em
  5. android 对话框大全
  6. android 五种布局模式
  7. Android(安卓)视频录制
  8. Android设置文本框单行多行显示
  9. android短信demo
  10. Android验证码读取