安卓资源文件说明

<item name="activatedBackgroundIndicator">@android:drawable/activated_background_holo_light</item>

这个是主题文件里的属性内容,<style name="Theme">,上一个item是对activatedBackgroundIndicator这个属性的设置,

设置的参数数值为activatedBackgroundIndicator.xml,这个文件的内容:

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_activated="true" android:drawable="@android:drawable/list_activated_holo" />
    <item android:drawable="@color/transparent" />
</selector>


?标识引用的是主题文件的属性内容

<item name="panelTextAppearance">?android:attr/textAppearance</item>

这一段的意思是对panelTextAppearance这个属性,引用的数值为属性中的textAppearance这个参数值。

这个做的好处是不通主题属性的这个参数值不一样,这个参数值根据选用主题的不通进行变化

资源文件可以用引用系统资源和程序资源



progress_large_white.xml内容为:

<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
    android:drawable="@drawable/spinner_white_76"
    android:pivotX="50%"
    android:pivotY="50%"
    android:framesCount="12"
    android:frameDuration="100" />

spinner_white_76.png分别再4个文件目录总,drawable-xhdpi、drawable-hdpi、drawable-mdpi、drawable-ldpi这四个目录中都有这个文件


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值