Android中preference标签的使用

  现在做公司任务的时候,经常会要去读Settings的源码,然后发现在xml文件中几乎全是用的preferenceScreen和preferenceCategory标签,很少有用布局和控件的,然后我就自己上网看了很多有关的资料,在此总结下。

  首先在res目录下,新建一个命名为xml的文件夹,然后建立一个aaa.xml文件,选择resource标签。

  先使用PreferenceCategory,代码如下

 

 

 

http://fl.365jia.cn/info/2277638.html
http://fl.365jia.cn/info/2277637.html
http://fl.365jia.cn/info/2277635.html
http://fl.365jia.cn/info/2277627.html
http://fl.365jia.cn/info/2277625.html
http://fl.365jia.cn/info/2277624.html
http://fl.365jia.cn/info/2277623.html
http://fl.365jia.cn/info/2277620.html
http://fl.365jia.cn/info/2277618.html
http://fl.365jia.cn/info/2277617.html
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4072
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4071
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4069
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4068
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4063
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4067
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4065
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4064
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4062
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4061
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4059
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4057
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4058
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4056
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4054
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4055
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4053
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4052
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4051
http://www.chaye315.cn/index.php?homepage=kmddyy17&file=news&itemid=4050
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4097
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4094
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4093
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4092
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4091
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4088
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4081
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4087
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4077
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4079
http://www.chaye315.cn/index.php?homepage=kmddyy18&file=news&itemid=4075
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52052.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52049.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52050.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52047.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52045.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52033.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52031.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52026.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52024.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52025.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52023.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52022.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52021.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52017.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52020.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52019.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52018.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52016.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52015.html
http://www.wangti360.net/com/kmddsbyy12/news/itemid-52014.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85344.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85343.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85342.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85340.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85339.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85337.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85336.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85335.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85334.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85332.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85331.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85330.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85329.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85327.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85326.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85325.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85323.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85322.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85321.html
http://www.maoyidi.com/m-kmddyy11/news/itemid-85320.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5490.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5489.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5488.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5487.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5486.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5485.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5484.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5483.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5482.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5481.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5480.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5479.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5478.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5477.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5476.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5475.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5474.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5473.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5472.html
http://www.start-tech.net/com/kmddyy11/news/itemid-5471.html
http://www.sn180.com/member/NewsView-1591265.html
http://www.sn180.com/member/NewsView-1591259.html
http://www.sn180.com/member/NewsView-1591252.html
http://www.sn180.com/member/NewsView-1591239.html
http://www.sn180.com/member/NewsView-1591230.html
http://www.sn180.com/member/NewsView-1591216.html
http://www.sn180.com/member/NewsView-1591211.html
http://www.sn180.com/member/NewsView-1591191.html
http://www.sn180.com/member/NewsView-1591164.html
http://www.gdzjdaily.com.cn/bxyy/clqj/0201503101157023.html
http://www.cqwb.com.cn/yst/jkys/9201503103341094.html
http://www.zhiyin.cn/yst/blys/a201503104920461.html
http://www.zhiyin.cn/yst/blys/a201503104920463.html
http://www.zhiyin.cn/yst/blys/a201503104920469.html
http://www.zhiyin.cn/yst/blys/a201503104920471.html
http://www.zhiyin.cn/yst/blys/a201503104920472.html
http://www.zhiyin.cn/yst/blys/a201503104920475.html
http://www.zhiyin.cn/yst/blys/a201503104920477.html
http://www.zhiyin.cn/yst/blys/a201503104920483.html
http://www.zhiyin.cn/yst/blys/a201503104920486.html
http://www.zhiyin.cn/yst/blys/a201503104920487.html
http://www.shenchuang.com/yst/xrkw/b201503103012615.html
http://www.shenchuang.com/yst/xrkw/b201503103012616.html
http://www.sxcm.net/bxyy/jkyy/b201503103012629.html
http://www.kaixian.tv/bxyy/ysmr/a201503104920554.html
http://www.sxcm.net/dele/2015/jkzc_0310/720198.html
http://www.sxcm.net/dele/2015/jkzc_0310/720200.html
http://www.sxcm.net/dele/2015/jkzc_0310/720201.html
http://www.sxcm.net/dele/2015/jkzc_0310/720203.html
http://www.sxcm.net/dele/2015/jkzc_0310/720204.html

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。