How to create a new xroid file for Android in a folder in which there is no Drawable resource

it may seem stupid. I am trying to make a tab layout for Android.

there is a part where I need to create a dropdown folder and have an android xroid file in that particular folder.

I looked through all the tutorials and youtube for this. The tutorial shows the new android XML file and select Drawable for the resource type.

in my case, I cannot create a new xroid file for Android, and Drawable as a resource type, since Drawable does not exist. The interface is shown below.

enter image description here

Is there any way to help me with this? I also tried adding the resource manually, but it will not work.

if I create a new xroid file for Android with a different type of resource and force it to insert a folder with the ability to transfer, the application crashes.

0
android tabs android-resources
Jul 30 2018-12-12T00:
source share
3 answers

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

2. Right-click the res folder of your project

3. Click Create, then the folder.

4. Name this folder available.

5. Right-click your new folder with the ability to copy, select a new

6. Locate the XML file in the XML folder

7. ENJOY :)

I'm not sure if I understand what you mean, is that what you want to do? If yes, then there are steps on how to do this, if you need to clarify, let me know. enter image description here

+5
Jul 30 2018-12-12T00:
source share

Do the following

your project -> new -> Folder -> entry in the text box -> completion

So, the folder with the ability to copy is now created in the res folder.

Then

drawable -> new -> File -> enter the name of the xml file you want to create (e.g. test.xml)

OR

drawable -> new -> Android XML file -> enter the name of the xml file you want to create (e.g. test)

Now you can see that there is a .xml file in your folder. Now you do whatever you want with this .xml file.

+2
Jul 30 2018-12-12T00:
source share

@Sara, if you have successfully created your additional โ€œpop-upโ€ folder, right-click on the new โ€œdrawableโ€ folder and go to the new Android XML file, just specify the new XML file and do the following.

0
Jul 30 '12 at 6:11
source share



All Articles