如何在创建文件夹绘制新的Andr​​oid XML文件,它不具有可绘制资源 [英] how to create new android xml file in drawable folder that does not have Drawable resource

查看:156
本文介绍了如何在创建文件夹绘制新的Andr​​oid XML文件,它不具有可绘制资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这听起来很傻。我试图为Android做标签的布局。

this might sound silly. i am trying to do tab layout for android.

还有,我需要建立一个文件夹,绘制并在该特定文件夹的Andr​​oid xml文件的一部分。

there is a part where i need to create a drawable folder and have android xml file in that particular folder.

我已检查过所有的教程和YouTube这一点。本教程介绍了创建一个新的Andr​​oid XML文件,并选择可绘制的资源类型。

i have looked into all the tutorial and youtube for this. The tutorial shows create a new android xml file and choose Drawable for the type of the resources.

在我的情况,我不能因为绘制对象不存在创建绘制对象作为资源的类型新的Andr​​oid XML文件。下面显示的界面。

in my case, i cannot create new android xml file with Drawable as the type of resources as Drawable does not exist. Below shows the interface.

反正是有可以帮助我?我也尝试手动添加资源,但它不会工作。

is there anyway can help me with this? i also tried to add the resource manually but it wont work.

如果我创造与其他资源类型新的Andr​​oid XML文件,并迫使它放在绘制文件夹,该应用程序崩溃。

if i am creating a new android xml file with other resource type and force it to put in drawable folder, the application crash.

推荐答案

1 转到您的项目浏览器这应该是您的Eclipse IDE的左侧。

1. Go to your project explorer which should be on the left side of your eclipse IDE.

2 右键点击你的项目的 RES 文件夹

2. Right click the res folder of your project

3 点击新建,然后文​​件夹

3. Click new, then folder

4。命名该文件夹绘制

5。右键单击新绘制文件夹,单击新的

5. Right click your new drawable folder, click new

6。 XML XML 文件搜索文件夹

6. Search for XML File in the XML folder

7 享受:)

我不知道我是否准确地了解你的意思,这是你想要做什么?如果是这样那么提供的步骤是怎么做到这一点,如果你需要我澄清,让我知道了。

I'm not sure if i understand exactly what you mean, Is this what you want to do? If so then the steps provided is how to do so, if you need me to clarify let me know.

这篇关于如何在创建文件夹绘制新的Andr​​oid XML文件,它不具有可绘制资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆