Where can I find Honeycomb back button in Android folder? - android

I would like to know where can I find the back button image, the one used by the android tablet emulator.

All the images which are used by the android platform are placed in the drawable folder under the res directory.
1.Open the android root directory(Installed directory).
2.Navigate to the res directory.E:\android-sdk-windows\platforms\android-12\data\res

You will find it in the android.jar file in your sdk folder.
For example mine is in C:\Program Files (x86)\Android\android-sdk\platforms\android-8\android.jar (for SDK version 8, to get a different version the change the "android-8" part of the path)
You can extract the .jar using winzip/7z etc as it is just a zip file in disguise. You will then find the drawables folder in the folders you unzipped.

Related

Can't import assets from adobe XD into android studio

I made a UI layout using adobe XD and wanted to export it to use in android studio.
I achieved this by using the Export-kit plugin, which conveniently exported all my required assets for one page into a folder.
Exported assets folder
the readme.txt then directs me to copy all these assets to the folder for the noactivity project folder for android studio.
after doing so , I still don't get any response.
So, I try it with a basic activity and manually add all the required XML codes (activity_main,colours,styles,e.t.c) , but still don't see anything.
I know that the skins exported from xd are in the project folder
(Copied values in the projects folder)
but I cant seem to view them on android studio.
Android Studio Window
any help in this issue will be really appreciated.
You have to put those files in the drawables folder inside the res folder, and keep the colors, string into their respective folder in the values folder inside res.

Deleting "Android\sdk" folder from the path "C:\User\AppData\Local\Android\Sdk"

Will it cause any problem if I delete the "Android\sdk" [Size: 2 GB] folder from an old directory path "C:\User\AppData\Local\Android\Sdk" ?
I actually do have another "Android\sdk" folder [Size: 23 GB] on a different location [Local Disk D] since previously I faced WHITESPACE NAMING ISSUES while using Android Studio. So I think the folder is lying idle on my Local Disk C. Should I delete the folder on the path "C:\User\AppData\Local\Android\Sdk" ? Or, will it harm the IDE in the future ?
No it will not harm your development and IDE, but make sure that before deleting this sdk folder, the Android Studio SDK path has been set to the other targeting SDK. You can completely delete the one which you are not using.
You can simply make a link folder to your main android sdk folder (23gb). you can put that link in place of your first folder (2gb). even you can have your main folder in a path with spaces, but you've to create a link folder for some where like c:\android\sdk and in your favorite IDE sets the path to that. It's a OS level abstraction and everything works like a charm on top of that
For example:
mklink /j C:\android-sdk "C:\Program Files (x86)\Android\android-sdk"
Yes. You can remove your older Android SDK Folder (2 GB). There is no longer a need for it as the Android studio is targetting the new location PATH ("D" Directory) so, Feel free to remove the older one.

Images and Directories not showing in Drawables directory

I imported a number of image assets, and I copied the assets into the project by copy/paste them into the project via Finder on my Mac. I've done a clean/rebuild on the project, and the files & directories showed for a moment, but then they disappeared. Now I can't get the files and the directories to show up. The files are clearly in the directory and project, but they don't show in Android Studio. They are labeled drawable-hdpi, drawable-mdpi, and so on. Here is an image of the files:
Here is my Android Studio:
Switch in project view will show you all folders for example drawable.hdpi and so on check all these folder for all images.
It turns out that I added my images to the drawables directory rather than the resources directory! Ugh...

Android Studio newly created folders not showing

I am using Android Studio 2.1.1 (currently the most updated stable version).
I created new directory inside 'res' by name "values-21"
and it don't shows up.
But if I go to the physical location of 'res' on the hard drive I can see that its exist.
and of course I checked using both Android and Project Files structure but either way its not showing it.
I wanted to check where is the problem so I created another directory by name "menu", and the last one was shown.
just to be sure I tried to create the same directory again ("values-21") but Android studio didn't allowed it because this directory allready exist's.
any ideas how to fix it?
Update - the solution is to create new directory using the "Android resource Directory" option and not by "Directory" option.
all you values xml files stored in values, values-21, values-mdpi or other physical folder in AndroidStudio displayed in one res/values folder.
It will not show until you copy a XML file into values-21, android studio consider all values folders to be of same family and it shows only one folder and the files with post script of the family in which it lies.
copy some layout file from resource directory and through windows explorer paste in that the folder that you have created i.e values-21 and now come back to android studio and check the folder should be there.
Happy coding

Location of default image button in android?

Does anyone know where I can find the default image used for button in android? It will be a nine-patch with the .9.png extensions.
You will find it in the android.jar file in your sdk folder.
For example mine is in
C:\Program Files (x86)\Android\android-sdk\platforms\android-8\android.jar
(for SDK version 8, to get a different version the change the "android-8" part of the path)
You can extract the .jar using winzip/7z etc as it is just a zip file in disguise. You will then find the drawables folder in the folders you unzipped.
Find in the drawable-* folders in the following path
C:\Program Files (x86)\Android\android-sdk\platforms\android-*\data\res

Categories

Resources