How do I get the Android Icons in Android Studio? - android

I'm using Android Studio, and I always see people's drawable calls to things like ic_launcher. I don't have any of these files - hell, where are they even stored? All of my few files begin with abc_ic. How would I go about getting the icons, and where would I put them?

You can get the system's drawables by
android:drawable/the_drawable_here on XML and
getResources().getDrawable(android.R.drawable.one_random_drawable,null);
programmatically.

abc_ are ActionBarCompat stuff. It's used by ActionBarCompat. For instance, you'll find the overflow icon there (the vertical dots indicating the menu).
Then there is android:drawable/ that contains the system stuff, not always convenient because it varies a lot from a version to another.
Finally, there is https://github.com/google/material-design-icons/ Pretty much all icons ever mentioned in material design are there, in black and white, in all sort of size, and for all densities.

The Android asset studio is a great tool for things like this. It will generate icons for all the main DPIs. It can be found here:
https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html

Related

Standardized image sizes on android

So I'm trying to build a basic app on Android Studio 1.4.0. Yes, I know it's old, but being pretty new to app-building and having found a tutorial I thought I'd go with it.
My question: I put an image into "#drawable." How do I make sure it resizes when I select different emulators? Should I use "#mipmap?" If so, how exactly would I do that? I have different sizes for my image (xxhdpi, etc.) but I don't know how to make it so the emulator "automatically selects" the correct image size.
For adding a resource to your Project use this plugin
https://plugins.jetbrains.com/plugin/7658-android-drawable-importer
You add your img on one size example xxxhdpi and it automatically make all the resizes, then you only set #drawable/yourimage in the ImageView for example and it selects automatically the image needed for that size
And also I highly recomend you to use at least android studio 2.7+, when you decide to actualize after tutorial you'll encounter a lot of differences and too many methods deprecated

How can I draw a arrow for showing incoming/ outgoing calls

I'm creating an app that shows Call Log.
In most of the contacts app we see arrows representing incoming/outgoing/missed calls.
where can I get them or can I create them using drawables or something?
You can install and use this plugin - Android Material Design Icon Generator - in Android Studio. It has a collection of several icons. It will also automatically put different sizes of drawables in their respective drawable folders.
To install a plugin in Android Studio: Goto settings/preferences -> plugins -> browse repositories.
If you are talking about icons, you can try Google Material Icons. It is the standard library of icons recommended by Google.
https://romannurik.github.io/AndroidAssetStudio/index.html
I got those icons from this website.I think this is very good website to make new icons

Android New Updated Market App Menu Icons

Has anyone seen a icon library that has the thin style gray scale look as the new updated android market app?
Yes, install the new SDK APIs and look into these platforms within the SDK folder.
Really don't know what you exactly mean. maybe you post some screenshot or give more details.
here is a list of some quite good icon-packs
if you are searching for psd-templates to get your own icons
vector graphics to use for icons

Android galaxy tab options menu different?

My friend tried my app with his new galaxy tab and it seems it is a little different than the emulator I tested it on. His options menu for the app was dark instead of the white background and you could not really see any of the options and most of the app did not work properly. I made the app on the 2.1 android update and am very stumped I tried searching for something about this but could not find anything. Is there a way to modify to act accordingly if this happens?
Samsung modified a lot of standard themes and images. The only way to fix it, that I found, was to force my own theme and use my own images everywhere.
Since Android 2.3 the menu background has changed to black. But the general color palette for the icons you make shouldn't be that much different. See more here:
Android Menu Design Guidelines
If you wish to have different icons for android version 2.3 and earlier versions put the icons for Android 2.3 and later in a resource folder with -v9 appended to the folder name. Example:
drawable-hdpi-v9
You should do the same thing with notification icons, as android 2.3 really made a big change to the way notification icons should look.
Btw, if you are looking for an easy way to make icons for your application, Roman Nurik's asset studio is really great: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html

Where is the drawable for the handle of a SlidingDrawer defined?

I want to use a SlidingDrawer in an activity, and I would love to just use the built-in tray handle, rather than try to find or create my own. I found it online thanks to CommonsWare but I assume that they got it from the Android platform itself, so I figure it will benefit me in the long run to know where to find it, rather than just use their copy of it. I looked for it in my Android SDK installation, under platforms/android-8/android.jar/res/ but with no success.
Where can I find the above image, in the Android SDK itself, rather than just downloading it?
Look in the launcher app: ~\platform\packages\apps\Launcher\res\drawable\handle.xml
It uses all the drawables: tray_handle_normal, tray_handle_pressed, tray_handle_selected.
may be you can type android.R.drawable... in eclipse and let the intelli-sense display all the built in drawables.
but I think it's not there cause I searched for it and didn't find it too
thanks
Be carefull with using images that come with the system. Google itself states that they will not guarantee that these images will be included in the system in every release (the name may change). Also the design of your app will change if the user uses something like Blur or Sense that overrides a lot of the standard design items. If you use a copy of the drawable itself you now how your app will look and you can be sure that your app will keep working even if the manufacturer or Google changes the images that come with a device.

Categories

Resources