关于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. Android布局文件属性
  3. Android中EditText属性
  4. 改变button按钮的形状
  5. Android(安卓)activity属性设置大全
  6. android:layout_weight的真实含义
  7. Android中取消GridView & ListView默认的点击背景色
  8. Android在layout xml中使用include
  9. android软件安全攻防实例第一章笔记

随机推荐

  1. Android-webview访问本地HTML5及本地HTML
  2. Android(安卓)中判断是否存在虚拟按键
  3. Android原生(Native)C开发之一 环境搭建
  4. android实现推送实践
  5. android+XML使用
  6. android 如何使用Parcelable接口
  7. android 中获取所有有效网卡和对应的IP地
  8. Android加密之全盘加密
  9. Eclipse经常闪退
  10. Android(安卓)Laucher3 去掉二级菜单