android开发中preference配置的xml文件的在eclipse和AS中的创建

一.在eclipse中创建

1.在res目录下新建文件夹xml

2.在xml目录下新建new 一个android xml file有时在other中

3.在resource type中选择preference即可

二.在android studio中创建

1.在res目录下新建文件夹xml

2.在xml目录下new 一个xml resource file 即可

三.AS在不同文件夹下右键new->会有不同resource file可供选择

layout文件夹下 new->layout resource file

xml文件夹下new->xml resource file

values文件夹下new->values resource file

drawable文件夹下new->drawable resource file

四,在eclipse下

在不同文件下new->android xml file -> 手动选择resource type

猜你喜欢

转载自blog.csdn.net/weixin_39577288/article/details/81084614