android Style应用

style.xml的用法
http://www.eoeandroid.com/thread-228860-1-1.html

android中的style属性值
http://www.eoeandroid.com/thread-208238-1-1.html

android style继承
http://www.eoeandroid.com/thread-208228-1-1.html

Android Style与Theme
http://www.eoeandroid.com/thread-71762-1-1.html

帖子正文:

<application
  android:theme="@style/Theme.MyTitle" >
< /application>

< resources>
<style name="animStyle">
  <item name="android:indeterminateDrawable">@anim/progressbar</item>
</style>
<style name="mypopwindow_anim_style">
  <item name="android:windowEnterAnimation">@anim/popshow_anim</item>
<item name="android:windowExitAnimation">@anim/pophidden_anim</item>
</style>
< !--去掉应用和标题栏中间阴影-->
<style name="Theme.MyTitle" parent="android:style/Theme.Light">
  <item name="android:windowNoTitle">true</item>
  <item name="android:windowContentOverlay">@null</item>
< /style>

<style name="perference_set_activity">
  <item name="android:windowBackground">@drawable/listbg</item>
  <!-- 窗口背景 -->
  <item name="android:focusable">false</item>
  <item name="android:textColor">#ff000000</item>
  <!-- 字体颜色 -->
  <item name="android:colorBackgroundCacheHint">#00000000</item>
  <!-- 背景缓存色透明,避免拖动全黑 -->
  <item name="android:windowNoTitle">false</item>
  <!-- 是否有标题 -->
</style>

posted on 2012-12-27 10:33  vus520  阅读(419)  评论(0编辑  收藏  举报

导航