@*android 引用

来源:互联网 发布:淘宝刷客是真的吗 编辑:程序博客网 时间:2024/05/16 11:08


@*android:style/Theme.Dialog.Alert(\packages\apps\Settings\AndroidManifest.xml)


Theme.Dialog.Alert

因为Alert是非public的。
使用*号的话与@的区别在于可以调用<sdk_path>\platforms\android-8\data\res\values\themes.xml中所有的已定义的theme.

而不使用*只能调用在<sdk_path>\platforms\android-8\data\res\values\public.xml中声明的样式或主题。


从某种意义上来说,没在public.xml中声明的资源是google不推荐使用的。


自定义seekbar样式的时候

<layer-list  xmlns:android="http://schemas.android.com/apk/res/android">    <item android:id="@*android:id/background" android:drawable="@drawable/setting_bright_seekbar_background" />    <item android:id="@*android:id/progress">        <scale android:drawable="@drawable/setting_bright_seekbar_progress" android:scaleWidth="100%" />    </item></layer-list>


0 0
原创粉丝点击